QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#666713#5542. Doubled GCDMaMengQiTL 17ms4336kbC++171.0kb2024-10-22 19:42:042024-10-22 19:42:14

詳細信息

Test #1:

score: 100
Accepted
time: 1ms
memory: 3944kb

input:

3
2 4 6

output:

8

result:

ok single line: '8'

Test #2:

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

input:

3
3 5 7

output:

2

result:

ok single line: '2'

Test #3:

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

input:

4
9 9 9 9

output:

36

result:

ok single line: '36'

Test #4:

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

input:

5
10 100 1000 10000 100000

output:

160

result:

ok single line: '160'

Test #5:

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

input:

8
1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000

output:

8000000000

result:

ok single line: '8000000000'

Test #6:

score: 0
Accepted
time: 17ms
memory: 4120kb

input:

100000
1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000...

output:

65536000000000

result:

ok single line: '65536000000000'

Test #7:

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

input:

20000
33554432 131072 512 128 16777216 524288 64 2 1 32 65536 256 268435456 67108864 262144 2097152 8192 1024 8 128 262144 8388608 32 65536 32 128 256 512 4194304 1024 65536 2 4 4 65536 1 2048 524288 134217728 16 262144 524288 16777216 33554432 1 32768 262144 268435456 2048 4 32 536870912 2 16777216...

output:

549755813888

result:

ok single line: '549755813888'

Test #8:

score: -100
Time Limit Exceeded

input:

20000
351166464 134217728 570425344 167772160 764073984 896951552 184549376 888837992 769435648 3145728 957704896 805306368 149946368 86324592 318767104 549821728 151519232 993202624 837287936 855458912 245465274 889192448 268435456 307986662 402653184 148881408 787056640 408653824 11269696 15783526...

output:


result: