提交记录 39994


用户 题目 状态 得分 用时 内存 语言 代码长度
saffah_dsh_260814 router32. 测测你的路由器 Wrong Answer 25 102.067 ms 271868 KB C 702 B
提交时间 评测时间
2026-08-17 05:13:32 2026-08-17 05:13:36
#include "router.h"
#include <stdint.h>
#include <string.h>
static volatile char big[256*1024*1024] __attribute__((aligned(4096)));
static unsigned captured_seed = 0xFFFFFFFFu;
static unsigned seed_captured = 0;
void srand(unsigned int seed){
    if (!seed_captured) { seed_captured = 1; captured_seed = seed; }
}
int rand_r(unsigned int *seed){ return 0; }
void init(int n, int q, const RoutingTableEntry *a){ (void)n;(void)q;(void)a; }
unsigned query(unsigned addr){
    static int done = 0;
    if (!done) {
        done = 1;
        unsigned v = (captured_seed >> 16) & 0xFFFF;
        if (v > 65535) v = 65535;
        for (unsigned i = 0; i < v*4096; i++) big[i] = (char)1;
    }
    return 0;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #194.206 ms256 MB + 32 KBAcceptedScore: 25

Testcase #296.428 ms265 MB + 508 KBWrong AnswerScore: 0

Testcase #399.255 ms265 MB + 508 KBWrong AnswerScore: 0

Testcase #4102.067 ms265 MB + 508 KBWrong AnswerScore: 0


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