QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#833792#8993. Menger Spongexiaowuc1AC ✓765ms11884kbPython3460b2024-12-27 03:32:452024-12-27 03:32:46

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 16ms
memory: 11796kb

input:

0 1 1000000 1 1000000 1 1000000

output:

1

result:

ok single line: '1'

Test #2:

score: 0
Accepted
time: 29ms
memory: 11884kb

input:

1000 1 3 1 3 1 3

output:

1

result:

ok single line: '1'

Test #3:

score: 0
Accepted
time: 18ms
memory: 11836kb

input:

2 49 81 5 6 20 81

output:

1

result:

ok single line: '1'

Test #4:

score: 0
Accepted
time: 16ms
memory: 11736kb

input:

3 49 81 5 6 20 81

output:

0

result:

ok single line: '0'

Test #5:

score: 0
Accepted
time: 15ms
memory: 11812kb

input:

0 1 2 1 2 1 2

output:

1

result:

ok single line: '1'

Test #6:

score: 0
Accepted
time: 22ms
memory: 11844kb

input:

1 1 2 1 2 1 2

output:

0

result:

ok single line: '0'

Test #7:

score: 0
Accepted
time: 19ms
memory: 11772kb

input:

109 1 177146 1 59048 1 3

output:

1

result:

ok single line: '1'

Test #8:

score: 0
Accepted
time: 18ms
memory: 11828kb

input:

110 1 177146 1 59048 2 3

output:

0

result:

ok single line: '0'

Test #9:

score: 0
Accepted
time: 715ms
memory: 11848kb

input:

100000 5 26 15 26 5 7

output:

1

result:

ok single line: '1'

Test #10:

score: 0
Accepted
time: 669ms
memory: 11824kb

input:

100000 695 59049 505 2187 2182 2187

output:

1

result:

ok single line: '1'

Test #11:

score: 0
Accepted
time: 680ms
memory: 11800kb

input:

100000 174368 177147 505 2187 39782 177147

output:

1

result:

ok single line: '1'

Test #12:

score: 0
Accepted
time: 19ms
memory: 11736kb

input:

100000 82085 177147 44923 177147 45418 177147

output:

0

result:

ok single line: '0'

Test #13:

score: 0
Accepted
time: 16ms
memory: 11796kb

input:

100000 153353 177147 150301 177147 5966 6561

output:

0

result:

ok single line: '0'

Test #14:

score: 0
Accepted
time: 18ms
memory: 11768kb

input:

100000 33478 37669 594397 623816 222031 380163

output:

0

result:

ok single line: '0'

Test #15:

score: 0
Accepted
time: 13ms
memory: 11880kb

input:

12 33478 37669 594397 623816 222031 380163

output:

1

result:

ok single line: '1'

Test #16:

score: 0
Accepted
time: 765ms
memory: 11880kb

input:

100000 1 795704 1 797161 1 177148

output:

1

result:

ok single line: '1'

Test #17:

score: 0
Accepted
time: 22ms
memory: 11880kb

input:

100000 510118 958261 72899 310918 580609 776150

output:

0

result:

ok single line: '0'

Test #18:

score: 0
Accepted
time: 23ms
memory: 11768kb

input:

14 510118 958261 72899 310918 580609 776150

output:

1

result:

ok single line: '1'

Test #19:

score: 0
Accepted
time: 726ms
memory: 11880kb

input:

100000 1 2 3 4 1 4

output:

1

result:

ok single line: '1'