QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#166590#1279. Distinct NumberwaifuSenpai#WA 3ms3776kbC++141.6kb2023-09-06 15:20:542023-09-06 15:20:54

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3
2 1
1 2
343 34345
1 3
1 3
1 123242343
1 1000000000000000000

output:

2
3
32768

result:

ok 3 tokens

Test #2:

score: -100
Wrong Answer
time: 3ms
memory: 3776kb

input:

902
5 35
2 17
19 24
32 55
59 63
73 97
5 55
3 17
35 37
38 39
43 82
87 88
1 37
46 88
4 79
1 9
40 56
56 56
57 78
8 61
5 7
19 21
27 33
34 36
36 38
59 73
77 79
94 97
2 86
0 23
72 78
7 43
5 10
12 21
22 34
36 58
65 71
72 88
91 99
9 74
16 24
31 41
44 48
48 49
51 51
57 57
61 65
69 71
85 93
4 85
5 44
46 47
54...

output:

4
8
4
16
4
4
8
2
8
8
2
12
4
8
2
4
2
16
2
8
2
0
2
4
4
1
2
4
2
8
2
2
4
1
8
8
2
4
4
4
2
6
2
2
4
8
2
12
12
2
6
8
3
4
4
2
2
6
8
8
2
12
15
2
2
20
8
14
8
4
2
6
4
4
23
14
6
8
8
8
4
1
8
4
25
4
9
2
8
4
1
3
8
3
4
4
4
4
4
6
8
4
3
2
12
15
8
20
6
4
4
4
8
9
4
8
4
8
8
16
8
10
2
4
2
2
8
4
0
4
4
10
4
2
2
4
4
6
1
4
10...

result:

wrong answer 1st words differ - expected: '8', found: '4'