QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#394220 | #4913. 子集匹配 | linweitong | 0 | 526ms | 20200kb | C++20 | 207b | 2024-04-20 10:23:20 | 2024-04-20 10:23:20 |
Judging History
answer
#include"hall.h"
using namespace std;
int solve(int n,int K,int s){
int o=0,ss=n+1,mn=0;
for (int i=0;i<n;++i){
int j=(s>>i)&1;
o+=(j==1?1:(-1));
if (o<ss)ss=o,mn=i;
}
return s-(1<<mn);
}
詳細信息
Test #1:
score: 0
Wrong Answer
time: 1ms
memory: 3764kb
input:
14 8
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #2:
score: 0
Wrong Answer
time: 1ms
memory: 3692kb
input:
15 8
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #3:
score: 0
Wrong Answer
time: 0ms
memory: 3624kb
input:
15 9
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #4:
score: 0
Wrong Answer
time: 0ms
memory: 3632kb
input:
15 10
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #5:
score: 0
Wrong Answer
time: 2ms
memory: 3664kb
input:
18 10
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #6:
score: 0
Wrong Answer
time: 2ms
memory: 4056kb
input:
19 10
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #7:
score: 0
Wrong Answer
time: 0ms
memory: 3836kb
input:
19 11
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #8:
score: 0
Wrong Answer
time: 2ms
memory: 3692kb
input:
19 12
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #9:
score: 0
Wrong Answer
time: 25ms
memory: 4284kb
input:
22 12
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #10:
score: 0
Wrong Answer
time: 52ms
memory: 4796kb
input:
23 12
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #11:
score: 0
Wrong Answer
time: 41ms
memory: 4800kb
input:
23 13
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #12:
score: 0
Wrong Answer
time: 32ms
memory: 4624kb
input:
23 14
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #13:
score: 0
Wrong Answer
time: 102ms
memory: 6032kb
input:
24 13
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #14:
score: 0
Wrong Answer
time: 218ms
memory: 7788kb
input:
25 13
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #15:
score: 0
Wrong Answer
time: 189ms
memory: 8088kb
input:
25 14
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #16:
score: 0
Wrong Answer
time: 135ms
memory: 7732kb
input:
25 15
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #17:
score: 0
Wrong Answer
time: 430ms
memory: 11816kb
input:
26 14
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #18:
score: 0
Wrong Answer
time: 526ms
memory: 20072kb
input:
27 14
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #19:
score: 0
Wrong Answer
time: 521ms
memory: 20200kb
input:
27 15
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #20:
score: 0
Wrong Answer
time: 512ms
memory: 20008kb
input:
27 16
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'