QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#105911#6363. Card GameDitaMirikaWA 5ms3496kbC++14521b2023-05-15 22:28:492023-05-15 22:28:53

詳細信息

Test #1:

score: 100
Accepted
time: 2ms
memory: 3340kb

input:

36 11
1 4 2 4 4 2 4 1 4 4 4

output:

YES

result:

ok answer is YES

Test #2:

score: 0
Accepted
time: 2ms
memory: 3264kb

input:

4 2
1 1

output:

NO

result:

ok answer is NO

Test #3:

score: 0
Accepted
time: 1ms
memory: 3328kb

input:

8 5
8 5 4 2 7

output:

YES

result:

ok answer is YES

Test #4:

score: 0
Accepted
time: 2ms
memory: 3264kb

input:

2 1
1

output:

NO

result:

ok answer is NO

Test #5:

score: 0
Accepted
time: 1ms
memory: 3288kb

input:

6 3
1 2 1

output:

NO

result:

ok answer is NO

Test #6:

score: 0
Accepted
time: 3ms
memory: 3296kb

input:

8 2
1 2

output:

NO

result:

ok answer is NO

Test #7:

score: 0
Accepted
time: 2ms
memory: 3268kb

input:

8 3
1 1 1

output:

NO

result:

ok answer is NO

Test #8:

score: 0
Accepted
time: 2ms
memory: 3260kb

input:

10 10
1 1 1 1 1 1 1 1 1 1

output:

YES

result:

ok answer is YES

Test #9:

score: 0
Accepted
time: 0ms
memory: 3308kb

input:

15 1
1

output:

NO

result:

ok answer is NO

Test #10:

score: 0
Accepted
time: 0ms
memory: 3308kb

input:

23 11
1 1 1 1 1 1 1 1 1 1 1

output:

YES

result:

ok answer is YES

Test #11:

score: 0
Accepted
time: 2ms
memory: 3328kb

input:

29 27
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

output:

YES

result:

ok answer is YES

Test #12:

score: 0
Accepted
time: 2ms
memory: 3336kb

input:

31 12
1 1 1 1 1 1 1 1 1 1 1 1

output:

YES

result:

ok answer is YES

Test #13:

score: 0
Accepted
time: 2ms
memory: 3264kb

input:

37 33
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

output:

YES

result:

ok answer is YES

Test #14:

score: 0
Accepted
time: 1ms
memory: 3440kb

input:

38 11
1 1 1 1 1 1 1 1 1 1 1

output:

NO

result:

ok answer is NO

Test #15:

score: 0
Accepted
time: 2ms
memory: 3260kb

input:

91 34
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

output:

YES

result:

ok answer is YES

Test #16:

score: 0
Accepted
time: 0ms
memory: 3332kb

input:

93 42
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

output:

YES

result:

ok answer is YES

Test #17:

score: 0
Accepted
time: 2ms
memory: 3268kb

input:

101 66
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

output:

YES

result:

ok answer is YES

Test #18:

score: 0
Accepted
time: 2ms
memory: 3324kb

input:

103 60
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

output:

YES

result:

ok answer is YES

Test #19:

score: 0
Accepted
time: 2ms
memory: 3268kb

input:

105 94
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

output:

YES

result:

ok answer is YES

Test #20:

score: 0
Accepted
time: 1ms
memory: 3496kb

input:

107 22
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

output:

YES

result:

ok answer is YES

Test #21:

score: 0
Accepted
time: 2ms
memory: 3264kb

input:

109 93
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

output:

YES

result:

ok answer is YES

Test #22:

score: 0
Accepted
time: 1ms
memory: 3336kb

input:

111 40
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

output:

YES

result:

ok answer is YES

Test #23:

score: 0
Accepted
time: 2ms
memory: 3492kb

input:

113 5
1 1 1 1 1

output:

YES

result:

ok answer is YES

Test #24:

score: 0
Accepted
time: 2ms
memory: 3308kb

input:

233 146
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

output:

YES

result:

ok answer is YES

Test #25:

score: 0
Accepted
time: 2ms
memory: 3260kb

input:

1007 823
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...

output:

YES

result:

ok answer is YES

Test #26:

score: 0
Accepted
time: 1ms
memory: 3448kb

input:

1009 995
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...

output:

YES

result:

ok answer is YES

Test #27:

score: 0
Accepted
time: 2ms
memory: 3448kb

input:

5003 382
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...

output:

YES

result:

ok answer is YES

Test #28:

score: 0
Accepted
time: 2ms
memory: 3336kb

input:

10005 5386
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...

output:

YES

result:

ok answer is YES

Test #29:

score: 0
Accepted
time: 1ms
memory: 3272kb

input:

10007 9230
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...

output:

YES

result:

ok answer is YES

Test #30:

score: 0
Accepted
time: 2ms
memory: 3336kb

input:

10009 4621
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...

output:

YES

result:

ok answer is YES

Test #31:

score: 0
Accepted
time: 3ms
memory: 3272kb

input:

30011 14603
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

output:

YES

result:

ok answer is YES

Test #32:

score: 0
Accepted
time: 4ms
memory: 3336kb

input:

50021 34858
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

output:

YES

result:

ok answer is YES

Test #33:

score: 0
Accepted
time: 1ms
memory: 3336kb

input:

50023 15614
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

output:

YES

result:

ok answer is YES

Test #34:

score: 0
Accepted
time: 4ms
memory: 3320kb

input:

50027 38342
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

output:

YES

result:

ok answer is YES

Test #35:

score: 0
Accepted
time: 0ms
memory: 3496kb

input:

114514 74004
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...

output:

YES

result:

ok answer is YES

Test #36:

score: 0
Accepted
time: 5ms
memory: 3400kb

input:

1919810 51607
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

output:

NO

result:

ok answer is NO

Test #37:

score: 0
Accepted
time: 2ms
memory: 3260kb

input:

94 43
94 86 29 48 57 81 56 16 4 36 80 59 19 70 89 22 82 83 38 43 75 39 85 21 61 24 63 53 14 40 27 18 26 28 11 9 76 66 46 15 88 34 23

output:

YES

result:

ok answer is YES

Test #38:

score: 0
Accepted
time: 0ms
memory: 3376kb

input:

44 17
16 12 4 12 19 17 9 4 18 11 13 19 3 14 9 5 22

output:

YES

result:

ok answer is YES

Test #39:

score: -100
Wrong Answer
time: 0ms
memory: 3328kb

input:

48 18
11 3 1 15 8 15 4 3 6 13 13 12 15 13 8 2 2 7

output:

NO

result:

wrong answer expected YES, found NO