QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#152950 | #5447. 鸽子 | AbdelmagedNour# | 12 | 732ms | 9452kb | C++20 | 1.8kb | 2023-08-29 01:40:49 | 2024-07-04 01:52:19 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
//#include "grader.cpp"
int pigeon_num(int Taskid, int k){
if(Taskid==0){
return 1;
}else if(Taskid==1){
return 1024;
}else{
return 128*(k+1);
}
}
std::string send(int Taskid, int n, int k, __uint128_t msg){
if(Taskid==0){
return "1";
}else if(Taskid==1){
string s=string(msg,'1');
s+=string(1024-msg,'0');
return s;
}else{
string s="";
for(int i=0;i<128;i++){
if((msg>>i)&1)s+=string(k+1,'1');
else s+=string(k+1,'0');
}
return s;
}
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
class Init{
public:
Init(){
//you may do some initialization for RECEIVE function here
}
};
__uint128_t receive(int Taskid, int k, const std::string &msg){
const static Init init;
if(Taskid==0){
__uint128_t hi = 5281683694948011861llu;
__uint128_t lo = 3195384480471073102llu;
return hi<<64|lo; //this value equals 97429867398990605044182047185430790478
}else if(Taskid==1){
__uint128_t res=0;
for(int i=0;i<1024;i++)res+=msg[i]-'0';
return res;
}else{
__uint128_t res=0,one=1;
int bit=0;
string s=msg;
while(bit<128){
if(s[0]=='1')res+=one<<bit;
int cnt=0;
string nw="";
for(int i=0;i<s.size();i++){
if(cnt<k+1&&s[i]==s[0])cnt++;
else nw+=s[i];
}
s=nw;
bit++;
}
return res;
}
}
詳細信息
Subtask #1:
score: 0
Wrong Answer
Test #1:
score: 0
Wrong Answer
time: 1ms = 0ms + 1ms
memory: 4204kb,4364kb
input:
encode 0 6 1 444386057 1259251521813 3478565260041 1380014506318
input:
w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...
input:
result:
wrong answer decode: cannot read code
Subtask #2:
score: 0
Wrong Answer
Test #2:
score: 0
Wrong Answer
time: 4ms = 3ms + 1ms
memory: 5440kb,4068kb
input:
encode 1 20 1000 429620070 0 0 720 0 0 312 0 0 746 0 0 460 0 0 449 0 0 778 0 0 877 0 0 951 0 0 40 0 0 836 0 0 436 0 0 440 0 0 694 0 0 3 0 0 124 0 0 123 0 0 812 0 0 848 0 0 569 0 0 46 0 0 144 0 0 930 0 0 703 0 0 830 0 0 198 0 0 1023 0 0 291 0 0 804 0 0 356 0 0 122 0 0 77 0 0 162 0 0 337 0 0 461 0 0 3...
input:
input:
espacezwz8hs9sw4krngnnjo3xas6knz0vybwaxu0tnw99b6zv9gdh44f4g1f5dauh1poou0o3eicdrctps322pg6aw46ywf06b5fo4ev99a4oklvtbibvhgobunkwwp5jfd1wm61a7vt8d6mr8sgdy2zzeu0sxcthrhkdqpt5ft4ecs9s7867afryivwe1rgxehl3srl7rk6g0515el791ckoiog04szk5dufeidikspckn9tjp074mfx23da9atel72l9vrl9s4jzcmy8amyh0zlco10w6w0olwu9nyihq...
result:
wrong answer cannot read code
Subtask #3:
score: 12
Accepted
Test #3:
score: 12
Accepted
time: 732ms = 19ms + 713ms
memory: 7864kb,9452kb
input:
encode 2 1 1000 436825046 0 0 600068 0 0 609400 0 0 1024294 0 0 791018 0 0 906125 0 0 350192 0 0 938169 0 0 978316 0 0 498345 0 0 859442 0 0 990072 0 0 996124 0 0 1013379 0 0 383142 0 0 355230 0 0 636760 0 0 138612 0 0 1014140 0 0 116388 0 0 286851 0 0 689038 0 0 996312 0 0 872409 0 0 137655 0 0 165...
input:
w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...
input:
decode 2 1 10000 256 713 11279679579226112 0 0 0 757 5381802930439454720 0 0 0 908 5539090988103892992 0 0 0 656 14885377931860770816 0 0 0 884 6506821537776009216 0 0 0 185 6912381663955648512 0 0 0 280 3560196749869973504 0 0 0 307 13240794701419773952 0 0 0 96 4382896275742261248 0 0 0 91 1682417...
result:
ok Accepted using 256 pigeon(s).
Subtask #4:
score: 0
Judgement Failed
Test #4:
score: 0
Judgement Failed
input:
encode 3 1 1000 387247419 0 0 0 0 0 1 0 0 2 0 0 3 0 0 4 0 0 5 0 0 6 0 0 7 0 0 8 0 0 9 0 0 10 0 0 11 0 0 12 0 0 13 0 0 14 0 0 15 0 0 16 0 0 17 0 0 18 0 0 19 0 0 20 0 0 21 0 0 22 0 0 23 0 0 24 0 0 25 0 0 26 0 0 27 0 0 28 0 0 29 0 0 30 0 0 31 0 0 32 0 0 33 0 0 34 0 0 35 0 0 36 0 0 37 0 0 38 0 0 39 0 0 ...
input:
input:
result:
Subtask #5:
score: 0
Judgement Failed
Test #22:
score: 0
Judgement Failed
input:
encode 4 2 1000 104801283 0 0 0 0 0 1 0 0 2 0 0 3 0 0 4 0 0 5 0 0 6 0 0 7 0 0 8 0 0 9 0 0 10 0 0 11 0 0 12 0 0 13 0 0 14 0 0 15 0 0 16 0 0 17 0 0 18 0 0 19 0 0 20 0 0 21 0 0 22 0 0 23 0 0 24 0 0 25 0 0 26 0 0 27 0 0 28 0 0 29 0 0 30 0 0 31 0 0 32 0 0 33 0 0 34 0 0 35 0 0 36 0 0 37 0 0 38 0 0 39 0 0 ...
result:
Subtask #6:
score: 0
Judgement Failed
Test #40:
score: 0
Judgement Failed
input:
encode 5 5 1000 711903075 0 0 0 0 0 1 0 0 2 0 0 3 0 0 4 0 0 5 0 0 6 0 0 7 0 0 8 0 0 9 0 0 10 0 0 11 0 0 12 0 0 13 0 0 14 0 0 15 0 0 16 0 0 17 0 0 18 0 0 19 0 0 20 0 0 21 0 0 22 0 0 23 0 0 24 0 0 25 0 0 26 0 0 27 0 0 28 0 0 29 0 0 30 0 0 31 0 0 32 0 0 33 0 0 34 0 0 35 0 0 36 0 0 37 0 0 38 0 0 39 0 0 ...
result:
Subtask #7:
score: 0
Judgement Failed
Test #58:
score: 0
Judgement Failed
input:
encode 6 7 1000 618359561 0 0 0 0 0 1 0 0 2 0 0 3 0 0 4 0 0 5 0 0 6 0 0 7 0 0 8 0 0 9 0 0 10 0 0 11 0 0 12 0 0 13 0 0 14 0 0 15 0 0 16 0 0 17 0 0 18 0 0 19 0 0 20 0 0 21 0 0 22 0 0 23 0 0 24 0 0 25 0 0 26 0 0 27 0 0 28 0 0 29 0 0 30 0 0 31 0 0 32 0 0 33 0 0 34 0 0 35 0 0 36 0 0 37 0 0 38 0 0 39 0 0 ...
result:
Subtask #8:
score: 0
Judgement Failed
Test #76:
score: 0
Judgement Failed
input:
encode 7 10 1000 211479294 0 0 0 0 0 1 0 0 2 0 0 3 0 0 4 0 0 5 0 0 6 0 0 7 0 0 8 0 0 9 0 0 10 0 0 11 0 0 12 0 0 13 0 0 14 0 0 15 0 0 16 0 0 17 0 0 18 0 0 19 0 0 20 0 0 21 0 0 22 0 0 23 0 0 24 0 0 25 0 0 26 0 0 27 0 0 28 0 0 29 0 0 30 0 0 31 0 0 32 0 0 33 0 0 34 0 0 35 0 0 36 0 0 37 0 0 38 0 0 39 0 0...
result:
Subtask #9:
score: 0
Judgement Failed
Test #94:
score: 0
Judgement Failed
input:
encode 8 14 1000 963380543 0 0 0 0 0 1 0 0 2 0 0 3 0 0 4 0 0 5 0 0 6 0 0 7 0 0 8 0 0 9 0 0 10 0 0 11 0 0 12 0 0 13 0 0 14 0 0 15 0 0 16 0 0 17 0 0 18 0 0 19 0 0 20 0 0 21 0 0 22 0 0 23 0 0 24 0 0 25 0 0 26 0 0 27 0 0 28 0 0 29 0 0 30 0 0 31 0 0 32 0 0 33 0 0 34 0 0 35 0 0 36 0 0 37 0 0 38 0 0 39 0 0...
result:
Subtask #10:
score: 0
Judgement Failed
Test #112:
score: 0
Judgement Failed
input:
encode 9 20 1000 49682627 0 0 0 0 0 1 0 0 2 0 0 3 0 0 4 0 0 5 0 0 6 0 0 7 0 0 8 0 0 9 0 0 10 0 0 11 0 0 12 0 0 13 0 0 14 0 0 15 0 0 16 0 0 17 0 0 18 0 0 19 0 0 20 0 0 21 0 0 22 0 0 23 0 0 24 0 0 25 0 0 26 0 0 27 0 0 28 0 0 29 0 0 30 0 0 31 0 0 32 0 0 33 0 0 34 0 0 35 0 0 36 0 0 37 0 0 38 0 0 39 0 0 ...