QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#394208#4913. 子集匹配zhaohaikun0 718ms11972kbC++20134b2024-04-20 10:19:452024-04-20 10:19:46

Judging History

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

  • [2024-04-20 10:19:46]
  • 评测
  • 测评结果:0
  • 用时:718ms
  • 内存:11972kb
  • [2024-04-20 10:19:45]
  • 提交

answer

#include"hall.h"
int solve(int n,int K,int s){int p=-1,G=0,w=0;for(int i=0;i<n;i++)if(s>>i&1?--w:++w>=G)p=i,G=w;return s^(1<<(p+1));}

详细

Test #1:

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

input:

14 8

output:

WA

result:

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

Test #2:

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

input:

15 8

output:

WA

result:

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

Test #3:

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

input:

15 9

output:

WA

result:

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

Test #4:

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

input:

15 10

output:

WA

result:

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

Test #5:

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

input:

18 10

output:

WA

result:

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

Test #6:

score: 0
Wrong Answer
time: 6ms
memory: 3692kb

input:

19 10

output:

WA

result:

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

Test #7:

score: 0
Wrong Answer
time: 5ms
memory: 4056kb

input:

19 11

output:

WA

result:

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

Test #8:

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

input:

19 12

output:

WA

result:

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

Test #9:

score: 0
Wrong Answer
time: 42ms
memory: 4144kb

input:

22 12

output:

WA

result:

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

Test #10:

score: 0
Wrong Answer
time: 88ms
memory: 4720kb

input:

23 12

output:

WA

result:

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

Test #11:

score: 0
Wrong Answer
time: 74ms
memory: 5024kb

input:

23 13

output:

WA

result:

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

Test #12:

score: 0
Wrong Answer
time: 52ms
memory: 4736kb

input:

23 14

output:

WA

result:

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

Test #13:

score: 0
Wrong Answer
time: 158ms
memory: 5656kb

input:

24 13

output:

WA

result:

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

Test #14:

score: 0
Wrong Answer
time: 378ms
memory: 7924kb

input:

25 13

output:

WA

result:

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

Test #15:

score: 0
Wrong Answer
time: 302ms
memory: 7852kb

input:

25 14

output:

WA

result:

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

Test #16:

score: 0
Wrong Answer
time: 219ms
memory: 8084kb

input:

25 15

output:

WA

result:

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

Test #17:

score: 0
Wrong Answer
time: 718ms
memory: 11972kb

input:

26 14

output:

WA

result:

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

Test #18:

score: 0
Runtime Error

input:

27 14

output:


result:


Test #19:

score: 0
Runtime Error

input:

27 15

output:


result:


Test #20:

score: 0
Runtime Error

input:

27 16

output:


result: