QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#394281#4913. 子集匹配hswfwkj0 601ms20356kbC++14233b2024-04-20 10:48:372024-04-20 10:48:38

Judging History

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

  • [2024-04-20 10:48:38]
  • 评测
  • 测评结果:0
  • 用时:601ms
  • 内存:20356kb
  • [2024-04-20 10:48:37]
  • 提交

answer

#include "hall.h"
int solve(int n, int K, int s)
{
	int mn = 0, pos = n, num = 0;
	for(int i = n - 1; i >= 0; i--)
	{
		if(s >> i & 1) num++;
		else num--;
		if(num < mn) mn = num, pos = i;
	}
	return s ^ (1 << pos - 1);
}

详细

Test #1:

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

input:

14 8

output:

WA

result:

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

Test #2:

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

input:

15 8

output:

WA

result:

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

Test #3:

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

input:

15 9

output:

WA

result:

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

Test #4:

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

input:

15 10

output:

WA

result:

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

Test #5:

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

input:

18 10

output:

WA

result:

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

Test #6:

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

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: 4024kb

input:

19 12

output:

WA

result:

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

Test #9:

score: 0
Wrong Answer
time: 30ms
memory: 4256kb

input:

22 12

output:

WA

result:

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

Test #10:

score: 0
Wrong Answer
time: 67ms
memory: 5000kb

input:

23 12

output:

WA

result:

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

Test #11:

score: 0
Wrong Answer
time: 53ms
memory: 4600kb

input:

23 13

output:

WA

result:

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

Test #12:

score: 0
Wrong Answer
time: 35ms
memory: 4760kb

input:

23 14

output:

WA

result:

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

Test #13:

score: 0
Wrong Answer
time: 117ms
memory: 5620kb

input:

24 13

output:

WA

result:

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

Test #14:

score: 0
Wrong Answer
time: 265ms
memory: 8064kb

input:

25 13

output:

WA

result:

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

Test #15:

score: 0
Wrong Answer
time: 211ms
memory: 7848kb

input:

25 14

output:

WA

result:

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

Test #16:

score: 0
Wrong Answer
time: 148ms
memory: 8072kb

input:

25 15

output:

WA

result:

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

Test #17:

score: 0
Wrong Answer
time: 518ms
memory: 12124kb

input:

26 14

output:

WA

result:

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

Test #18:

score: 0
Wrong Answer
time: 601ms
memory: 20356kb

input:

27 14

output:

WA

result:

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

Test #19:

score: 0
Wrong Answer
time: 570ms
memory: 20264kb

input:

27 15

output:

WA

result:

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

Test #20:

score: 0
Wrong Answer
time: 559ms
memory: 20300kb

input:

27 16

output:

WA

result:

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