提交记录 61685


用户 题目 状态 得分 用时 内存 语言 代码长度
saffah_dsh_v41_0919 1008. 测测你的二维数点 Wrong Answer 0 6.301 ms 53072 KB C++17 671 B
提交时间 评测时间
2026-09-19 22:43:01 2026-09-19 22:43:04
#define DIV 4000
/* 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

CompilationN/AN/ACompile OKScore: N/A

Testcase #16.301 ms51 MB + 848 KBWrong AnswerScore: 0


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