提交记录 22443


用户 题目 状态 得分 用时 内存 语言 代码长度
qwqwqwq router32. 测测你的路由器 Runtime Error 0 3.505 ms 9952 KB C++17 326 B
提交时间 评测时间
2024-09-01 13:22:15 2024-09-01 13:22:17
#include"router.h"
#include<ext/pb_ds/assoc_container.hpp>
__gnu_pbds::gp_hash_table<unsigned,unsigned>a[32];
void init(int b,int,const RoutingTableEntry*c){for(int d=0;d<b;d++)a[c[d].len][c[d].addr]=c[d].nexthop;}
unsigned query(unsigned b){for(int c=32;c;b&=~(1u<<--c))if(auto d=a[c].find(b);d!=a[c].end())return d->second;}

CompilationN/AN/ACompile OKScore: N/A

Testcase #115.34 us24 KBRuntime ErrorScore: 0

Testcase #23.505 ms9 MB + 736 KBRuntime ErrorScore: 0

Testcase #33.492 ms9 MB + 736 KBRuntime ErrorScore: 0

Testcase #43.488 ms9 MB + 736 KBRuntime ErrorScore: 0


Judge Duck Online | 评测鸭在线
Server Time: 2025-07-13 02:10:47 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠