QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#510855#5207. Interactive Factorial GuessingZhaoZiLongTL 661ms472512kbC++201.6kb2024-08-09 13:41:322024-08-09 13:41:32

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 661ms
memory: 472512kb

input:

2
0
0
0
0
0
0
0
0
0
1
YES
2
8
0
0
YES

output:

? 1601
? 181
? 2001
? 28
? 226
? 1487
? 6
? 1
? 24
? 0
! 1
? 1601
? 1692
? 1429
? 1465
! 5982

result:

ok single line: 'OK'

Test #2:

score: -100
Time Limit Exceeded

input:

100
0
0
0
0
0
4
7
YES
1
5
2
3
YES
7
5
0
5
YES
1
4
3
4
YES
0
0
2
6
3
YES
4
9
5
7
YES
7
8
5
5
YES
8
5
3
4
YES
6
2
1
0
YES
7
6
6
1
YES
5
7
7
9
YES
7
9
6
0
YES
7
5
4
1
YES
8
2
3
9
YES
0
0
5
9
0
YES
8
8
2
7
YES
3
8
9
4
YES
6
6
4
2
YES
9
9
3
1
YES
9
8
4
9
YES
0
0
9
0
0
YES
8
0
5
0
YES
2
7
6
8
YES
6
1
4
2
...

output:

? 1601
? 181
? 2001
? 28
? 226
? 1487
? 1355
! 4593
? 1601
? 1483
? 1666
? 1171
! 4688
? 1601
? 1786
? 1393
? 1480
! 5747
? 1601
? 1483
? 1376
? 1006
! 3416
? 1601
? 181
? 2001
? 1461
? 1345
! 3862
? 1601
? 1543
? 1383
? 1214
! 3367
? 1601
? 1786
? 2180
? 1175
! 2721
? 1601
? 1456
? 2608
? 1344
! 38...

result: