結果

問題 No.736 約比
ユーザー nebukuro09nebukuro09
提出日時 2018-09-28 21:29:53
言語 Python2
(2.7.18)
結果
AC  
実行時間 22 ms / 2,000 ms
コード長 181 bytes
コンパイル時間 1,119 ms
コンパイル使用メモリ 6,688 KB
実行使用メモリ 7,880 KB
最終ジャッジ日時 2023-08-02 10:46:15
合計ジャッジ時間 4,382 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 20 ms
7,660 KB
testcase_01 AC 21 ms
7,608 KB
testcase_02 AC 21 ms
7,660 KB
testcase_03 AC 20 ms
7,784 KB
testcase_04 AC 20 ms
7,652 KB
testcase_05 AC 20 ms
7,816 KB
testcase_06 AC 20 ms
7,776 KB
testcase_07 AC 21 ms
7,816 KB
testcase_08 AC 20 ms
7,732 KB
testcase_09 AC 20 ms
7,664 KB
testcase_10 AC 20 ms
7,832 KB
testcase_11 AC 20 ms
7,672 KB
testcase_12 AC 19 ms
7,824 KB
testcase_13 AC 19 ms
7,692 KB
testcase_14 AC 20 ms
7,780 KB
testcase_15 AC 20 ms
7,660 KB
testcase_16 AC 19 ms
7,816 KB
testcase_17 AC 20 ms
7,840 KB
testcase_18 AC 19 ms
7,692 KB
testcase_19 AC 21 ms
7,684 KB
testcase_20 AC 20 ms
7,620 KB
testcase_21 AC 20 ms
7,772 KB
testcase_22 AC 19 ms
7,652 KB
testcase_23 AC 20 ms
7,648 KB
testcase_24 AC 20 ms
7,788 KB
testcase_25 AC 21 ms
7,780 KB
testcase_26 AC 19 ms
7,620 KB
testcase_27 AC 21 ms
7,692 KB
testcase_28 AC 21 ms
7,780 KB
testcase_29 AC 21 ms
7,664 KB
testcase_30 AC 22 ms
7,672 KB
testcase_31 AC 22 ms
7,812 KB
testcase_32 AC 21 ms
7,652 KB
testcase_33 AC 21 ms
7,780 KB
testcase_34 AC 21 ms
7,820 KB
testcase_35 AC 21 ms
7,732 KB
testcase_36 AC 20 ms
7,660 KB
testcase_37 AC 20 ms
7,736 KB
testcase_38 AC 20 ms
7,780 KB
testcase_39 AC 19 ms
7,644 KB
testcase_40 AC 20 ms
7,808 KB
testcase_41 AC 19 ms
7,736 KB
testcase_42 AC 20 ms
7,880 KB
testcase_43 AC 19 ms
7,668 KB
testcase_44 AC 20 ms
7,652 KB
testcase_45 AC 21 ms
7,612 KB
testcase_46 AC 19 ms
7,664 KB
testcase_47 AC 19 ms
7,776 KB
testcase_48 AC 19 ms
7,816 KB
testcase_49 AC 19 ms
7,728 KB
testcase_50 AC 20 ms
7,736 KB
testcase_51 AC 19 ms
7,660 KB
testcase_52 AC 20 ms
7,832 KB
testcase_53 AC 19 ms
7,688 KB
testcase_54 AC 20 ms
7,660 KB
testcase_55 AC 20 ms
7,660 KB
testcase_56 AC 19 ms
7,664 KB
testcase_57 AC 19 ms
7,808 KB
testcase_58 AC 20 ms
7,660 KB
testcase_59 AC 19 ms
7,664 KB
testcase_60 AC 18 ms
7,736 KB
testcase_61 AC 18 ms
7,816 KB
testcase_62 AC 18 ms
7,640 KB
testcase_63 AC 20 ms
7,616 KB
testcase_64 AC 18 ms
7,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from fractions import gcd

N = input()
A = map(int, raw_input().split())
G = A[0]
for i in xrange(1, N):
    G = gcd(G, A[i])

print ':'.join(map(str, [A[i]/G for i in xrange(N)]))
0