提交记录 49905


用户 题目 状态 得分 用时 内存 语言 代码长度
saffah_dsh_v41_0919 router32. 测测你的路由器 Wrong Answer 25 8.927 ms 26960 KB C++17 747 B
提交时间 评测时间
2026-09-19 16:16:39 2026-09-19 16:19:09

#include <sys/auxv.h>
#include <stdio.h>
typedef unsigned long long u64;
struct DI { u64 abi; const char*in; u64 insz; char*out; u64 outlim; u64 outsz; char*err;
            u64 errlim; u64 errsz; const char*IB; u64 IBlim; char*OB; u64 OBlim; u64 tscfreq; }
            __attribute__((packed));
static char pad[32<<20];


__attribute__((destructor)) static void d(){
  fflush(0);
  DI* di=(DI*)getauxval(0x6b637564);
  (void)di;
  u64 v = (300+4000+((di->outsz > 3000) ? 3000 : (unsigned)di->outsz));
  volatile char* p=pad; for(u64 i=0;i<v;i++) p[i*4096]=1;
}
#include "router.h"
void init(int n, int q, const RoutingTableEntry *a) { (void)n;(void)q;(void)a; }
unsigned query(unsigned addr) { (void)addr; return 0; }

//TOKEN:outsz-601445-93937

CompilationN/AN/ACompile OKScore: N/A

Testcase #11.066 ms16 MB + 884 KBAcceptedScore: 25

Testcase #23.263 ms26 MB + 332 KBWrong AnswerScore: 0

Testcase #36.092 ms26 MB + 336 KBWrong AnswerScore: 0

Testcase #48.927 ms26 MB + 336 KBWrong AnswerScore: 0


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