提交记录 14583


用户 题目 状态 得分 用时 内存 语言 代码长度
tangh18 router32. 测测你的路由器 Wrong Answer 25 7.874 ms 9716 KB C++ 574 B
提交时间 评测时间
2020-10-21 10:46:53 2020-10-21 10:46:55
#include "router.h"
#include <unordered_map>

uint32_t big2little32(uint32_t big){
  return (
    ((big & 0xff000000) >> 24) |
    ((big & 0x00ff0000) >> 8) |
    ((big & 0x0000ff00) << 8) |
    ((big & 0x000000ff) << 24) 
  );
}

uint32_t truncated(uint32_t u, int high, int low){
  uint32_t tmp = (uint32_t)0xffffffff;
  tmp = (tmp >> (32 - high + low));
  tmp = tmp << low;
  tmp = tmp & u;
  return tmp;
}

std::unordered_map<uint32_t, RoutingTableEntry> routeMap;

void init(int n, int q, const RoutingTableEntry *a) {
	
}

unsigned query(unsigned addr) {
	return 0;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #112.63 us24 KBAcceptedScore: 25

Testcase #22.213 ms9 MB + 500 KBWrong AnswerScore: 0

Testcase #35.07 ms9 MB + 500 KBWrong AnswerScore: 0

Testcase #47.874 ms9 MB + 500 KBWrong AnswerScore: 0


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