QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#394206#4913. 子集匹配dongyc6660 538ms20140kbC++14251b2024-04-20 10:17:482024-04-20 10:17:49

Judging History

This is the latest submission verdict.

  • [2024-04-20 10:17:49]
  • Judged
  • Verdict: 0
  • Time: 538ms
  • Memory: 20140kb
  • [2024-04-20 10:17:48]
  • Submitted

answer

#include<bits/stdc++.h>
#include "hall.h"
using namespace std;

int h[30],minv,minp;
int solve(int n,int k,int s){
	minv=minp=0;
	for(int i=1;i<=n;i++){
		h[i]=h[i-1]+(s>>(i-1))&1;
		if(minv>h[i])minv=h[i],minp=i;
	}
	return s^(1<<minp);
}

詳細信息

Test #1:

score: 0
Wrong Answer
time: 1ms
memory: 3608kb

input:

14 8

output:

WA

result:

wrong answer 1st words differ - expected: 'OK', found: 'WA'

Test #2:

score: 0
Wrong Answer
time: 1ms
memory: 3948kb

input:

15 8

output:

WA

result:

wrong answer 1st words differ - expected: 'OK', found: 'WA'

Test #3:

score: 0
Wrong Answer
time: 1ms
memory: 3748kb

input:

15 9

output:

WA

result:

wrong answer 1st words differ - expected: 'OK', found: 'WA'

Test #4:

score: 0
Wrong Answer
time: 1ms
memory: 3616kb

input:

15 10

output:

WA

result:

wrong answer 1st words differ - expected: 'OK', found: 'WA'

Test #5:

score: 0
Wrong Answer
time: 2ms
memory: 4004kb

input:

18 10

output:

WA

result:

wrong answer 1st words differ - expected: 'OK', found: 'WA'

Test #6:

score: 0
Wrong Answer
time: 0ms
memory: 3648kb

input:

19 10

output:

WA

result:

wrong answer 1st words differ - expected: 'OK', found: 'WA'

Test #7:

score: 0
Wrong Answer
time: 3ms
memory: 3816kb

input:

19 11

output:

WA

result:

wrong answer 1st words differ - expected: 'OK', found: 'WA'

Test #8:

score: 0
Wrong Answer
time: 2ms
memory: 3872kb

input:

19 12

output:

WA

result:

wrong answer 1st words differ - expected: 'OK', found: 'WA'

Test #9:

score: 0
Wrong Answer
time: 23ms
memory: 4252kb

input:

22 12

output:

WA

result:

wrong answer 1st words differ - expected: 'OK', found: 'WA'

Test #10:

score: 0
Wrong Answer
time: 49ms
memory: 4828kb

input:

23 12

output:

WA

result:

wrong answer 1st words differ - expected: 'OK', found: 'WA'

Test #11:

score: 0
Wrong Answer
time: 41ms
memory: 4768kb

input:

23 13

output:

WA

result:

wrong answer 1st words differ - expected: 'OK', found: 'WA'

Test #12:

score: 0
Wrong Answer
time: 29ms
memory: 4656kb

input:

23 14

output:

WA

result:

wrong answer 1st words differ - expected: 'OK', found: 'WA'

Test #13:

score: 0
Wrong Answer
time: 96ms
memory: 5724kb

input:

24 13

output:

WA

result:

wrong answer 1st words differ - expected: 'OK', found: 'WA'

Test #14:

score: 0
Wrong Answer
time: 214ms
memory: 7720kb

input:

25 13

output:

WA

result:

wrong answer 1st words differ - expected: 'OK', found: 'WA'

Test #15:

score: 0
Wrong Answer
time: 182ms
memory: 8036kb

input:

25 14

output:

WA

result:

wrong answer 1st words differ - expected: 'OK', found: 'WA'

Test #16:

score: 0
Wrong Answer
time: 130ms
memory: 7836kb

input:

25 15

output:

WA

result:

wrong answer 1st words differ - expected: 'OK', found: 'WA'

Test #17:

score: 0
Wrong Answer
time: 461ms
memory: 11804kb

input:

26 14

output:

WA

result:

wrong answer 1st words differ - expected: 'OK', found: 'WA'

Test #18:

score: 0
Wrong Answer
time: 538ms
memory: 20072kb

input:

27 14

output:

WA

result:

wrong answer 1st words differ - expected: 'OK', found: 'WA'

Test #19:

score: 0
Wrong Answer
time: 506ms
memory: 20140kb

input:

27 15

output:

WA

result:

wrong answer 1st words differ - expected: 'OK', found: 'WA'

Test #20:

score: 0
Wrong Answer
time: 490ms
memory: 19988kb

input:

27 16

output:

WA

result:

wrong answer 1st words differ - expected: 'OK', found: 'WA'