QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#748127#8993. Menger Spongeucup-team4645#AC ✓2ms3708kbC++23853b2024-11-14 19:25:412024-11-14 19:25:49

詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 3704kb

input:

0 1 1000000 1 1000000 1 1000000

output:

1

result:

ok single line: '1'

Test #2:

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

input:

1000 1 3 1 3 1 3

output:

1

result:

ok single line: '1'

Test #3:

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

input:

2 49 81 5 6 20 81

output:

1

result:

ok single line: '1'

Test #4:

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

input:

3 49 81 5 6 20 81

output:

0

result:

ok single line: '0'

Test #5:

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

input:

0 1 2 1 2 1 2

output:

1

result:

ok single line: '1'

Test #6:

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

input:

1 1 2 1 2 1 2

output:

0

result:

ok single line: '0'

Test #7:

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

input:

109 1 177146 1 59048 1 3

output:

1

result:

ok single line: '1'

Test #8:

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

input:

110 1 177146 1 59048 2 3

output:

0

result:

ok single line: '0'

Test #9:

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

input:

100000 5 26 15 26 5 7

output:

1

result:

ok single line: '1'

Test #10:

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

input:

100000 695 59049 505 2187 2182 2187

output:

1

result:

ok single line: '1'

Test #11:

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

input:

100000 174368 177147 505 2187 39782 177147

output:

1

result:

ok single line: '1'

Test #12:

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

input:

100000 82085 177147 44923 177147 45418 177147

output:

0

result:

ok single line: '0'

Test #13:

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

input:

100000 153353 177147 150301 177147 5966 6561

output:

0

result:

ok single line: '0'

Test #14:

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

input:

100000 33478 37669 594397 623816 222031 380163

output:

0

result:

ok single line: '0'

Test #15:

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

input:

12 33478 37669 594397 623816 222031 380163

output:

1

result:

ok single line: '1'

Test #16:

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

input:

100000 1 795704 1 797161 1 177148

output:

1

result:

ok single line: '1'

Test #17:

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

input:

100000 510118 958261 72899 310918 580609 776150

output:

0

result:

ok single line: '0'

Test #18:

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

input:

14 510118 958261 72899 310918 580609 776150

output:

1

result:

ok single line: '1'

Test #19:

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

input:

100000 1 2 3 4 1 4

output:

1

result:

ok single line: '1'