結果

問題 No.339 何人が回答したのか
ユーザー yansi819yansi819
提出日時 2024-05-20 11:51:03
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 1,000 ms
コード長 167 bytes
コンパイル時間 209 ms
コンパイル使用メモリ 82,416 KB
実行使用メモリ 54,196 KB
最終ジャッジ日時 2024-12-20 17:48:22
合計ジャッジ時間 4,843 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
53,744 KB
testcase_01 AC 39 ms
52,568 KB
testcase_02 AC 40 ms
53,504 KB
testcase_03 AC 38 ms
52,320 KB
testcase_04 AC 38 ms
53,664 KB
testcase_05 AC 39 ms
52,860 KB
testcase_06 AC 39 ms
52,720 KB
testcase_07 AC 39 ms
53,600 KB
testcase_08 AC 41 ms
53,344 KB
testcase_09 AC 38 ms
52,192 KB
testcase_10 AC 38 ms
53,340 KB
testcase_11 AC 40 ms
52,248 KB
testcase_12 AC 41 ms
52,196 KB
testcase_13 AC 40 ms
53,416 KB
testcase_14 AC 39 ms
53,632 KB
testcase_15 AC 40 ms
53,244 KB
testcase_16 AC 38 ms
53,228 KB
testcase_17 AC 38 ms
52,328 KB
testcase_18 AC 40 ms
53,220 KB
testcase_19 AC 38 ms
51,952 KB
testcase_20 AC 39 ms
52,512 KB
testcase_21 AC 39 ms
52,916 KB
testcase_22 AC 38 ms
53,420 KB
testcase_23 AC 39 ms
52,964 KB
testcase_24 AC 38 ms
52,272 KB
testcase_25 AC 37 ms
52,608 KB
testcase_26 AC 39 ms
52,592 KB
testcase_27 AC 38 ms
53,272 KB
testcase_28 AC 39 ms
52,508 KB
testcase_29 AC 38 ms
52,480 KB
testcase_30 AC 39 ms
53,764 KB
testcase_31 AC 39 ms
52,588 KB
testcase_32 AC 40 ms
52,360 KB
testcase_33 AC 39 ms
52,868 KB
testcase_34 AC 39 ms
52,736 KB
testcase_35 AC 41 ms
52,440 KB
testcase_36 AC 39 ms
53,268 KB
testcase_37 AC 39 ms
52,348 KB
testcase_38 AC 38 ms
52,056 KB
testcase_39 AC 40 ms
52,724 KB
testcase_40 AC 39 ms
52,588 KB
testcase_41 AC 40 ms
52,984 KB
testcase_42 AC 38 ms
52,528 KB
testcase_43 AC 39 ms
54,196 KB
testcase_44 AC 38 ms
53,004 KB
testcase_45 AC 39 ms
52,680 KB
testcase_46 AC 39 ms
52,740 KB
testcase_47 AC 41 ms
53,660 KB
testcase_48 AC 39 ms
54,064 KB
testcase_49 AC 39 ms
54,004 KB
testcase_50 AC 38 ms
52,916 KB
testcase_51 AC 38 ms
52,552 KB
testcase_52 AC 37 ms
53,008 KB
testcase_53 AC 39 ms
52,944 KB
testcase_54 AC 42 ms
52,248 KB
testcase_55 AC 42 ms
52,948 KB
testcase_56 AC 39 ms
53,440 KB
testcase_57 AC 39 ms
53,328 KB
testcase_58 AC 39 ms
52,260 KB
testcase_59 AC 41 ms
52,528 KB
testcase_60 AC 38 ms
52,392 KB
testcase_61 AC 37 ms
52,964 KB
testcase_62 AC 40 ms
53,288 KB
testcase_63 AC 39 ms
53,180 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import gcd
N = int(input())
A = [int(input()) for _ in range(N)]
g = A[0]
for a in A[1:]:
    g = gcd(g, a)
sum = 0
for a in A:
    sum += a // g
print(sum)
0