提交记录 49894


用户 题目 状态 得分 用时 内存 语言 代码长度
saffah_dsh_v41_0919 routecomp. 测测你的路由表压缩 Wrong Answer 0 5.586 ms 48608 KB C++17 758 B
提交时间 评测时间
2026-09-19 16:16:33 2026-09-19 16:18:20

#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 "routecomp.h"
void compress(const RoutingTableEntry *tbl, int n, RoutingTableEntry **tbl_comp, int *n_comp) { (void)tbl;(void)n;(void)tbl_comp;(void)n_comp; }

//TOKEN:outsz-601418-92789

CompilationN/AN/ACompile OKScore: N/A

Testcase #15.586 ms47 MB + 480 KBWrong AnswerScore: 0.0


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