QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#121043 | #6661. 야유회 | AFewSuns | 0 | 178ms | 5220kb | C++14 | 1.9kb | 2023-07-07 14:38:52 | 2023-07-07 14:38:56 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
namespace my_std{
#define ll long long
#define bl bool
ll my_pow(ll a,ll b,ll mod){
ll res=1;
if(!b) return 1;
while(b){
if(b&1) res=(res*a)%mod;
a=(a*a)%mod;
b>>=1;
}
return res;
}
ll qpow(ll a,ll b){
ll res=1;
if(!b) return 1;
while(b){
if(b&1) res*=a;
a*=a;
b>>=1;
}
return res;
}
#define db double
#define pf printf
#define pc putchar
#define fr(i,x,y) for(register ll i=(x);i<=(y);i++)
#define pfr(i,x,y) for(register ll i=(x);i>=(y);i--)
#define go(u) for(ll i=head[u];i;i=e[i].nxt)
#define enter pc('\n')
#define space pc(' ')
#define fir first
#define sec second
#define MP make_pair
#define il inline
#define inf 1e18
#define random(x) rand()*rand()%(x)
#define inv(a,mod) my_pow((a),(mod-2),(mod))
il ll read(){
ll sum=0,f=1;
char ch=0;
while(!isdigit(ch)){
if(ch=='-') f=-1;
ch=getchar();
}
while(isdigit(ch)){
sum=sum*10+(ch^48);
ch=getchar();
}
return sum*f;
}
il void write(ll x){
if(x<0){
x=-x;
pc('-');
}
if(x>9) write(x/10);
pc(x%10+'0');
}
il void writeln(ll x){
write(x);
enter;
}
il void writesp(ll x){
write(x);
space;
}
}
using namespace my_std;
ll A[200020],B[22],C[11];
void init(){
ll cnt=0;
fr(i,0,(1ll<<20)-1) if(__builtin_popcount(i)==10) A[cnt++]=i;
cnt=0;
fr(i,0,(1ll<<6)-1) if(__builtin_popcount(i)==3) B[cnt++]=i;
cnt=0;
fr(i,0,(1ll<<4)-1) if(__builtin_popcount(i)==2) C[cnt++]=i;
}
int morning(int x,int y){
fr(i,0,19) if(!((A[x]>>i)&1)&&((A[y]>>i)&1)) return i;
}
int afternoon(int x,int y,int z){
ll tmpx,tmpy;
fr(i,0,5) if(!((B[x]>>i)&1)&&((B[y]>>i)&1)) tmpx=i;
fr(i,0,5) if(!((B[y]>>i)&1)&&((B[z]>>i)&1)) tmpy=i;
fr(i,0,3) if(!((C[tmpx]>>i)&1)&&((C[tmpy]>>i)&1)) return i;
}
int evening(int x,int y,int z){
if(y<=2) return y;
return 3-x-z;
}
详细
Subtask #1:
score: 0
Wrong Answer
Test #1:
score: 5
Accepted
time: 2ms = 1ms + 1ms
memory: 5104kb,3800kb
input:
2dc2b1d4-8de2-INPUT-bcd3-aa55b691fdb3 1 2 40 40 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 40 0 3 1 5 7 9 6 4 2 10 8 23 21 25 27 29 26 24 22 30 28 13 11 15 17 19 16 14 12 20 18 33 31 35 37 39 36 34 32 38
output:
dd180566-1d37-PIPE-b85d-c176ae85727d 3 2 28 28 28 28 89 88 8b 8a 8d 8c 8f 8e 81 80 83 82 85 84 87 86 99 98 9b 9a 9d 9c 9f 9e 91 90 93 92 95 94 97 96 a9 a8 ab aa ad ac af ae 00000083 00000080 00000081 0000008e 0000008f 0000008c 0000008d 0000008a 0000008b 00000088 00000089 00000080 00000081 0000008e ...
input:
dd180566-1d37-PIPE-b85d-c176ae85727d 3 2 28 28 28 28 89 88 8b 8a 8d 8c 8f 8e 81 80 83 82 85 84 87 86 99 98 9b 9a 9d 9c 9f 9e 91 90 93 92 95 94 97 96 a9 a8 ab aa ad ac af ae 00000083 00000080 00000081 0000008e 0000008f 0000008c 0000008d 0000008a 0000008b 00000088 00000089 00000080 00000081 0000008e ...
output:
4468cc07-dabe-OUTPUT-ba95-7ddd49645c94 3
result:
ok Correct, m = 3
Test #2:
score: 5
Accepted
time: 6ms = 4ms + 2ms
memory: 5164kb,3828kb
input:
2dc2b1d4-8de2-INPUT-bcd3-aa55b691fdb3 1 2 40 7 6 9 4 2 1 5 7 40 10 6 9 4 2 0 1 5 7 3 8
output:
dd180566-1d37-PIPE-b85d-c176ae85727d 3 2 7 6 4 2 8f 80 8d 8b 88 8c 8e 0000008d 00000088 0000008f 00000081 00000080 0000008c 00000088 00000089 00000088 00000089 89 88 a 9 7 5 8f 80 8d 8b 89 88 8c 8e 8a 81 0000008d 00000088 0000008f 00000081 00000083 00000080 0000008c 0000008a 0000008e 00000088 ...
input:
dd180566-1d37-PIPE-b85d-c176ae85727d 3 2 7 6 4 2 8f 80 8d 8b 88 8c 8e 0000008d 00000088 0000008f 00000081 00000080 0000008c 00000088 00000089 00000088 00000089 89 88 a 9 7 5 8f 80 8d 8b 89 88 8c 8e 8a 81 0000008d 00000088 0000008f 00000081 00000083 00000080 0000008c 0000008a 0000008e 00000088 ...
output:
4468cc07-dabe-OUTPUT-ba95-7ddd49645c94 3
result:
ok Correct, m = 3
Test #3:
score: 0
Wrong Answer
time: 168ms = 167ms + 1ms
input:
2dc2b1d4-8de2-INPUT-bcd3-aa55b691fdb3 1 25000 40 40 12 4 16 7 26 21 10 20 0 32 15 3 33 37 23 8 34 38 13 1 29 18 17 25 39 35 31 24 36 28 30 9 14 5 19 22 2 27 11 6 40 40 3 34 21 38 36 7 33 39 26 15 2 13 22 20 5 25 10 12 30 35 0 31 24 17 11 37 32 18 9 28 6 16 23 27 1 4 8 14 19 29 40 40 18 34 29 31 22 3...
output:
64be09ab-d709-ERROR-82bc-c23f6124dd26 Wrong Answer [3]
input:
64be09ab-d709-ERROR-82bc-c23f6124dd26 Wrong Answer [3]
output:
64be09ab-d709-ERROR-82bc-c23f6124dd26 Wrong Answer [3]
result:
wrong answer Wrong Answer [3]
Subtask #2:
score: 0
Wrong Answer
Test #8:
score: 95
Accepted
time: 6ms = 4ms + 2ms
memory: 5220kb,3800kb
input:
2dc2b1d4-8de2-INPUT-bcd3-aa55b691fdb3 2 2 40 40 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 40 0 3 1 5 7 9 6 4 2 10 8 23 21 25 27 29 26 24 22 30 28 13 11 15 17 19 16 14 12 20 18 33 31 35 37 39 36 34 32 38
output:
dd180566-1d37-PIPE-b85d-c176ae85727d 3 2 28 28 28 28 89 88 8b 8a 8d 8c 8f 8e 81 80 83 82 85 84 87 86 99 98 9b 9a 9d 9c 9f 9e 91 90 93 92 95 94 97 96 a9 a8 ab aa ad ac af ae 00000083 00000080 00000081 0000008e 0000008f 0000008c 0000008d 0000008a 0000008b 00000088 00000089 00000080 00000081 0000008e ...
input:
dd180566-1d37-PIPE-b85d-c176ae85727d 3 2 28 28 28 28 89 88 8b 8a 8d 8c 8f 8e 81 80 83 82 85 84 87 86 99 98 9b 9a 9d 9c 9f 9e 91 90 93 92 95 94 97 96 a9 a8 ab aa ad ac af ae 00000083 00000080 00000081 0000008e 0000008f 0000008c 0000008d 0000008a 0000008b 00000088 00000089 00000080 00000081 0000008e ...
output:
4468cc07-dabe-OUTPUT-ba95-7ddd49645c94 3
result:
ok Correct, m = 3
Test #9:
score: 95
Accepted
time: 0ms = 0ms + 0ms
memory: 5160kb,3768kb
input:
2dc2b1d4-8de2-INPUT-bcd3-aa55b691fdb3 2 2 40 7 6 9 4 2 1 5 7 40 10 6 9 4 2 0 1 5 7 3 8
output:
dd180566-1d37-PIPE-b85d-c176ae85727d 3 2 7 6 4 2 8f 80 8d 8b 88 8c 8e 0000008d 00000088 0000008f 00000081 00000080 0000008c 00000088 00000089 00000088 00000089 89 88 a 9 7 5 8f 80 8d 8b 89 88 8c 8e 8a 81 0000008d 00000088 0000008f 00000081 00000083 00000080 0000008c 0000008a 0000008e 00000088 ...
input:
dd180566-1d37-PIPE-b85d-c176ae85727d 3 2 7 6 4 2 8f 80 8d 8b 88 8c 8e 0000008d 00000088 0000008f 00000081 00000080 0000008c 00000088 00000089 00000088 00000089 89 88 a 9 7 5 8f 80 8d 8b 89 88 8c 8e 8a 81 0000008d 00000088 0000008f 00000081 00000083 00000080 0000008c 0000008a 0000008e 00000088 ...
output:
4468cc07-dabe-OUTPUT-ba95-7ddd49645c94 3
result:
ok Correct, m = 3
Test #10:
score: 0
Wrong Answer
time: 178ms = 177ms + 1ms
input:
2dc2b1d4-8de2-INPUT-bcd3-aa55b691fdb3 2 25000 40 40 8 20 9 10 28 26 23 38 21 15 0 12 24 5 17 33 19 27 16 35 36 1 13 39 6 25 2 7 22 3 32 29 14 31 34 30 18 4 37 11 40 40 22 39 8 4 38 5 24 12 20 33 15 37 28 0 19 36 13 26 25 34 27 35 14 16 18 10 3 7 23 29 9 31 1 30 17 2 21 32 11 6 40 40 23 7 33 4 16 15 ...
output:
64be09ab-d709-ERROR-82bc-c23f6124dd26 Wrong Answer [3]
input:
64be09ab-d709-ERROR-82bc-c23f6124dd26 Wrong Answer [3]
output:
64be09ab-d709-ERROR-82bc-c23f6124dd26 Wrong Answer [3]
result:
wrong answer Wrong Answer [3]