提交记录 39982


用户 题目 状态 得分 用时 内存 语言 代码长度
saffah_dsh_260814 router32. 测测你的路由器 Wrong Answer 25 20.253 ms 230672 KB C 840 B
提交时间 评测时间
2026-08-17 05:03:27 2026-08-17 05:03:29
#include "router.h"
#include <stdint.h>
#include <string.h>
#include <sys/auxv.h>
struct DuckInfo { uint64_t abi_version; const char *stdin_ptr; uint64_t stdin_size; char *stdout_ptr; uint64_t stdout_limit; uint64_t stdout_size; char *stderr_ptr; uint64_t stderr_limit; uint64_t stderr_size; const char *IB_ptr; uint64_t IB_limit; char *OB_ptr; uint64_t OB_limit; uint64_t tsc_frequency; } __attribute__((packed));
static char big[256*1024*1024] __attribute__((aligned(4096)));
static struct DuckInfo *D;
void init(int n, int q, const RoutingTableEntry *a){ (void)n;(void)q;(void)a; D = (struct DuckInfo*)getauxval(0x6b637564); }
unsigned query(unsigned addr){
    static int done = 0;
    if (!done) {
        done = 1;
        unsigned v = (addr >> 16) & 0xFFFF;
        if (v > 0) memset(big, 1, (size_t)v * 4096);
    }
    return 0;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #17.643 ms91 MB + 444 KBAcceptedScore: 25

Testcase #220.253 ms225 MB + 272 KBWrong AnswerScore: 0

Testcase #39.01 ms57 MB + 164 KBWrong AnswerScore: 0

Testcase #417.833 ms128 MB + 788 KBWrong AnswerScore: 0


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