提交记录 14600


用户 题目 状态 得分 用时 内存 语言 代码长度
cyx router32. 测测你的路由器 Wrong Answer 25 30 s 9716 KB C++ 333 B
提交时间 评测时间
2020-10-21 22:04:57 2020-10-21 22:05:29
#include "router.h"
const RoutingTableEntry *ga;
int gn;
int gq;
void init(int n, int q, const RoutingTableEntry *a) {
      gn =n;
     gq=q;
   ga=a;
}

unsigned query(unsigned addr) {
        for(int i=0;i<gn;++i){
             if(ga[i].addr==addr){
                    return ga[i].nexthop;
             }
         }
	return 0;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #112.88 us24 KBAcceptedScore: 25

Testcase #22.744 ms9 MB + 500 KBWrong AnswerScore: 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-22 05:37:04 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠