提交记录 61686
| 提交时间 |
评测时间 |
| 2026-09-19 22:43:08 |
2026-09-19 22:43:10 |
#define DIV 2000
/* 1008 probe: leak the per-testcase n via the memory side channel. */
typedef unsigned u32;
static char pad[48 << 20];
static inline void dumpv(unsigned long long v) {
if (v > 30000) v = 30000;
volatile char *p = pad;
for (unsigned long long i = 0; i < v; i++) p[i * 4096] = 1;
}
static unsigned g_n = 0;
#ifndef DIV
#define DIV 1000
#endif
__attribute__((destructor)) static void leak(void) {
dumpv(1000 + (unsigned long long)g_n / DIV);
}
void count_2d(int n, const unsigned *x, const unsigned *y, unsigned *out) {
(void)x; (void)y;
g_n = (unsigned)n;
for (int i = 0; i < n; i++) out[i] = 0;
}
//qqqqqqqqqqqqqqqqqqqqqqqqq
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 6.915 ms | 61 MB + 608 KB | Wrong Answer | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-11-06 15:23:22 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠