提交记录 10269


用户 题目 状态 得分 用时 内存 语言 代码长度
user1 router32. 测测你的路由器 Time Limit Exceeded 25 30 s 9712 KB C++11 516 B
提交时间 评测时间
2019-09-17 00:13:21 2020-08-01 02:06:50
#include <algorithm>
#include "router.h"

const RoutingTableEntry* tblGlobal;
int nGlobal;

#define __builtin_bswap32
bool operator<(const RoutingTableEntry& a, const RoutingTableEntry& b) {
    return __builtin_bswap32(a.addr)<__builtin_bswap32(b.addr) || 
    __builtin_bswap32(a.addr)==__builtin_bswap32(b.addr) && a.len<b.len;
}
void init(int n, int q, const RoutingTableEntry *tbl) {
	tblGlobal = tbl; nGlobal=n; for (int i=1; i<n; ++i) if(tbl[i]<tbl[i-1]) while(1);
}

unsigned query(unsigned addr) {return 0;}

CompilationN/AN/ACompile OKScore: N/A

Testcase #112.25 us24 KBAcceptedScore: 25

Testcase #230 s9 MB + 496 KBTime Limit ExceededScore: 0

Testcase #330 s9 MB + 496 KBTime Limit ExceededScore: 0

Testcase #430 s9 MB + 496 KBTime Limit ExceededScore: 0


Judge Duck Online | 评测鸭在线
Server Time: 2026-03-29 21:49:43 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠