提交记录 22444
提交时间 |
评测时间 |
2024-09-01 13:22:38 |
2024-09-01 13:23:31 |
#include"router.h"
#include<ext/pb_ds/assoc_container.hpp>
__gnu_pbds::gp_hash_table<unsigned,unsigned>a[33];
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;}
Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
Testcase #1 | 14.58 us | 24 KB | Runtime Error | Score: 0 | 显示更多 |
Testcase #2 | 1.798 s | 45 MB + 688 KB | Accepted | Score: 25 | 显示更多 |
Testcase #3 | 18.622 s | 45 MB + 688 KB | Wrong Answer | Score: 0 | 显示更多 |
Testcase #4 | 30 s | 39 MB + 684 KB | Time Limit Exceeded | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2025-07-13 02:04:37 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠