結果

問題 No.983 Convolution
ユーザー convexineqconvexineq
提出日時 2021-05-06 09:41:36
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 152 bytes
コンパイル時間 371 ms
コンパイル使用メモリ 87,228 KB
実行使用メモリ 106,968 KB
最終ジャッジ日時 2023-10-12 02:58:05
合計ジャッジ時間 8,140 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,496 KB
testcase_01 AC 68 ms
71,292 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 104 ms
82,376 KB
testcase_14 AC 108 ms
85,768 KB
testcase_15 AC 119 ms
97,496 KB
testcase_16 AC 109 ms
90,556 KB
testcase_17 AC 127 ms
103,076 KB
testcase_18 AC 93 ms
78,868 KB
testcase_19 AC 117 ms
90,588 KB
testcase_20 AC 135 ms
106,968 KB
testcase_21 AC 135 ms
98,280 KB
testcase_22 AC 85 ms
79,732 KB
testcase_23 AC 96 ms
96,028 KB
testcase_24 AC 76 ms
78,580 KB
testcase_25 AC 77 ms
77,592 KB
testcase_26 AC 85 ms
87,660 KB
testcase_27 AC 83 ms
84,720 KB
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 79 ms
71,512 KB
testcase_34 AC 79 ms
71,420 KB
testcase_35 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import gcd
n = int(input())
*a, = map(lambda x:0 if x=="-1" else int(x),input().split())
g = 0
for i in a: g = gcd(g,i)
print(g if g else -1)
0