QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#394255 | #4913. 子集匹配 | hswfwkj | 0 | 514ms | 20100kb | C++14 | 275b | 2024-04-20 10:34:32 | 2024-04-20 10:34:33 |
Judging History
answer
#include<bits/stdc++.h>
#include "hall.h"
using namespace std;
int solve(int n, int K, int s)
{
int mn = 0, pos = 0, num = 0;
for(int i = 0; i < n; i++)
{
if(s >> i & 1) num++;
else num--;
if(num < mn) mn = num, pos = i;
}
return s ^ (1 << pos + 1);
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 1ms
memory: 3636kb
input:
14 8
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #2:
score: 0
Wrong Answer
time: 1ms
memory: 3696kb
input:
15 8
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #3:
score: 0
Wrong Answer
time: 1ms
memory: 3760kb
input:
15 9
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #4:
score: 0
Wrong Answer
time: 1ms
memory: 3996kb
input:
15 10
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #5:
score: 0
Wrong Answer
time: 2ms
memory: 3720kb
input:
18 10
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #6:
score: 0
Wrong Answer
time: 4ms
memory: 3692kb
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: 4020kb
input:
19 12
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #9:
score: 0
Wrong Answer
time: 21ms
memory: 4340kb
input:
22 12
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #10:
score: 0
Wrong Answer
time: 50ms
memory: 4788kb
input:
23 12
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #11:
score: 0
Wrong Answer
time: 43ms
memory: 4800kb
input:
23 13
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #12:
score: 0
Wrong Answer
time: 31ms
memory: 4620kb
input:
23 14
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #13:
score: 0
Wrong Answer
time: 100ms
memory: 5820kb
input:
24 13
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #14:
score: 0
Wrong Answer
time: 215ms
memory: 7784kb
input:
25 13
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #15:
score: 0
Wrong Answer
time: 181ms
memory: 7748kb
input:
25 14
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #16:
score: 0
Wrong Answer
time: 135ms
memory: 7720kb
input:
25 15
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #17:
score: 0
Wrong Answer
time: 424ms
memory: 11784kb
input:
26 14
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #18:
score: 0
Wrong Answer
time: 505ms
memory: 20020kb
input:
27 14
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #19:
score: 0
Wrong Answer
time: 514ms
memory: 20068kb
input:
27 15
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'
Test #20:
score: 0
Wrong Answer
time: 486ms
memory: 20100kb
input:
27 16
output:
WA
result:
wrong answer 1st words differ - expected: 'OK', found: 'WA'