提交记录 52326
| 提交时间 |
评测时间 |
| 2026-09-19 17:58:22 |
2026-09-19 17:58:43 |
typedef unsigned int u32;
typedef unsigned long long u64;
static char pad[64 << 20];
static inline void dumpv(u64 v) { volatile char *p = pad; for (u64 i = 0; i < v; i++) p[i * 4096] = 1; }
unsigned solve(int n, char *s) {
int other = 0, lp = 0, rp = 0;
for (int i = 0; i < n; i++) { if (s[i] != '?') other++; if (s[i] == '(') lp++; if (s[i] == ')') rp++; }
// v = other mod 4096 (0..4095) -> pages 300+v
u64 v = (u64)(other & 0xFFF);
dumpv(300 + v);
return (unsigned)(lp - rp);
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 92.88 us | 1 MB + 220 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #2 | 312.74 us | 1 MB + 352 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #3 | 510.5 us | 1 MB + 492 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #4 | 586.06 us | 1 MB + 500 KB | Wrong Answer | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-11-08 14:55:12 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠