QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#394222#4913. 子集匹配linweitong0 909ms20344kbC++20211b2024-04-20 10:24:572024-04-20 10:24:57

Judging History

你现在查看的是最新测评结果

  • [2024-04-20 10:24:57]
  • 评测
  • 测评结果:0
  • 用时:909ms
  • 内存:20344kb
  • [2024-04-20 10:24:57]
  • 提交

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+1));
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

14 8

output:

WA

result:

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

Test #2:

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

input:

15 8

output:

WA

result:

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

Test #3:

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

input:

15 9

output:

WA

result:

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

Test #4:

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

input:

15 10

output:

WA

result:

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

Test #5:

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

input:

18 10

output:

WA

result:

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

Test #6:

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

input:

19 10

output:

WA

result:

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

Test #7:

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

input:

19 11

output:

WA

result:

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

Test #8:

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

input:

19 12

output:

WA

result:

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

Test #9:

score: 0
Wrong Answer
time: 26ms
memory: 4264kb

input:

22 12

output:

WA

result:

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

Test #10:

score: 0
Wrong Answer
time: 56ms
memory: 4776kb

input:

23 12

output:

WA

result:

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

Test #11:

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

input:

23 13

output:

WA

result:

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

Test #12:

score: 0
Wrong Answer
time: 32ms
memory: 4992kb

input:

23 14

output:

WA

result:

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

Test #13:

score: 0
Wrong Answer
time: 108ms
memory: 5852kb

input:

24 13

output:

WA

result:

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

Test #14:

score: 0
Wrong Answer
time: 250ms
memory: 7896kb

input:

25 13

output:

WA

result:

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

Test #15:

score: 0
Wrong Answer
time: 203ms
memory: 7844kb

input:

25 14

output:

WA

result:

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

Test #16:

score: 0
Wrong Answer
time: 147ms
memory: 7780kb

input:

25 15

output:

WA

result:

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

Test #17:

score: 0
Wrong Answer
time: 557ms
memory: 12164kb

input:

26 14

output:

WA

result:

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

Test #18:

score: 0
Wrong Answer
time: 790ms
memory: 20312kb

input:

27 14

output:

WA

result:

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

Test #19:

score: 0
Wrong Answer
time: 909ms
memory: 20344kb

input:

27 15

output:

WA

result:

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

Test #20:

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

input:

27 16

output:

WA

result:

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