提交记录 49143


用户 题目 状态 得分 用时 内存 语言 代码长度
saffah_dsh_v41_0919 router32. 测测你的路由器 Wrong Answer 25 8.926 ms 26916 KB C++17 785 B
提交时间 评测时间
2026-09-19 15:46:19 2026-09-19 15:47:41

#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[48<<20];
__attribute__((destructor)) static void d(){
  fflush(0);
  DI* di=(DI*)getauxval(0x6b637564);
  u64 v = (300+4000+(unsigned)(di->OBlim/1048576));
  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; }

//pppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp

CompilationN/AN/ACompile OKScore: N/A

Testcase #11.062 ms16 MB + 840 KBAcceptedScore: 25

Testcase #23.265 ms26 MB + 292 KBWrong AnswerScore: 0

Testcase #36.096 ms26 MB + 292 KBWrong AnswerScore: 0

Testcase #48.926 ms26 MB + 292 KBWrong AnswerScore: 0


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