提交记录 61684


用户 题目 状态 得分 用时 内存 语言 代码长度
saffah_dsh_v41_0919 1008. 测测你的二维数点 Wrong Answer 0 8.129 ms 83072 KB C++17 662 B
提交时间 评测时间
2026-09-19 22:42:30 2026-09-19 22:42:32
#define DIV 1000
/* 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;
}

//zzzzzzzzzzzzzzzz

CompilationN/AN/ACompile OKScore: N/A

Testcase #18.129 ms81 MB + 128 KBWrong AnswerScore: 0


Judge Duck Online | 评测鸭在线
Server Time: 2026-11-06 15:23:22 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠