結果

問題 No.736 約比
ユーザー 👑 H20H20
提出日時 2021-01-10 10:12:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 37 ms / 2,000 ms
コード長 189 bytes
コンパイル時間 264 ms
コンパイル使用メモリ 82,900 KB
実行使用メモリ 54,288 KB
最終ジャッジ日時 2024-04-30 20:04:14
合計ジャッジ時間 4,109 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
53,048 KB
testcase_01 AC 33 ms
52,348 KB
testcase_02 AC 34 ms
52,400 KB
testcase_03 AC 33 ms
53,696 KB
testcase_04 AC 34 ms
53,892 KB
testcase_05 AC 35 ms
52,124 KB
testcase_06 AC 34 ms
52,136 KB
testcase_07 AC 33 ms
53,140 KB
testcase_08 AC 34 ms
53,072 KB
testcase_09 AC 33 ms
52,700 KB
testcase_10 AC 37 ms
52,944 KB
testcase_11 AC 34 ms
52,712 KB
testcase_12 AC 34 ms
52,372 KB
testcase_13 AC 34 ms
53,216 KB
testcase_14 AC 33 ms
52,080 KB
testcase_15 AC 33 ms
53,252 KB
testcase_16 AC 33 ms
52,316 KB
testcase_17 AC 34 ms
54,000 KB
testcase_18 AC 34 ms
52,952 KB
testcase_19 AC 32 ms
52,924 KB
testcase_20 AC 32 ms
52,864 KB
testcase_21 AC 33 ms
52,584 KB
testcase_22 AC 32 ms
53,820 KB
testcase_23 AC 34 ms
52,140 KB
testcase_24 AC 35 ms
52,136 KB
testcase_25 AC 34 ms
53,000 KB
testcase_26 AC 34 ms
53,652 KB
testcase_27 AC 34 ms
52,732 KB
testcase_28 AC 33 ms
54,288 KB
testcase_29 AC 34 ms
53,552 KB
testcase_30 AC 34 ms
54,140 KB
testcase_31 AC 36 ms
52,516 KB
testcase_32 AC 36 ms
52,456 KB
testcase_33 AC 35 ms
52,800 KB
testcase_34 AC 33 ms
52,616 KB
testcase_35 AC 34 ms
52,616 KB
testcase_36 AC 34 ms
53,004 KB
testcase_37 AC 33 ms
52,412 KB
testcase_38 AC 32 ms
53,456 KB
testcase_39 AC 32 ms
53,816 KB
testcase_40 AC 34 ms
53,456 KB
testcase_41 AC 32 ms
53,800 KB
testcase_42 AC 34 ms
52,076 KB
testcase_43 AC 33 ms
52,736 KB
testcase_44 AC 33 ms
52,864 KB
testcase_45 AC 34 ms
53,140 KB
testcase_46 AC 35 ms
52,372 KB
testcase_47 AC 35 ms
52,240 KB
testcase_48 AC 34 ms
52,576 KB
testcase_49 AC 33 ms
52,436 KB
testcase_50 AC 33 ms
52,932 KB
testcase_51 AC 33 ms
52,936 KB
testcase_52 AC 33 ms
53,336 KB
testcase_53 AC 34 ms
52,936 KB
testcase_54 AC 33 ms
52,852 KB
testcase_55 AC 34 ms
52,952 KB
testcase_56 AC 34 ms
52,524 KB
testcase_57 AC 34 ms
52,360 KB
testcase_58 AC 33 ms
53,000 KB
testcase_59 AC 36 ms
53,744 KB
testcase_60 AC 34 ms
53,148 KB
testcase_61 AC 37 ms
53,244 KB
testcase_62 AC 36 ms
53,672 KB
testcase_63 AC 36 ms
53,688 KB
testcase_64 AC 36 ms
52,500 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
N = int(input())
A = list(map(int, input().split()))
gcd = 0
for i in range(N):
    gcd = math.gcd(gcd,A[i])
for i in range(N):
    A[i] = A[i]//gcd
print(':'.join(map(str, A)))
0