結果

問題 No.736 約比
ユーザー NoaSaberNoaSaber
提出日時 2021-04-23 23:12:34
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 226 bytes
コンパイル時間 604 ms
コンパイル使用メモリ 87,164 KB
実行使用メモリ 71,520 KB
最終ジャッジ日時 2023-09-17 13:05:31
合計ジャッジ時間 8,286 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,420 KB
testcase_01 AC 74 ms
71,288 KB
testcase_02 AC 75 ms
71,124 KB
testcase_03 AC 75 ms
71,224 KB
testcase_04 AC 75 ms
71,164 KB
testcase_05 AC 73 ms
71,512 KB
testcase_06 AC 74 ms
71,184 KB
testcase_07 AC 73 ms
71,520 KB
testcase_08 AC 74 ms
71,436 KB
testcase_09 AC 75 ms
71,080 KB
testcase_10 AC 73 ms
71,068 KB
testcase_11 AC 74 ms
71,160 KB
testcase_12 AC 76 ms
71,484 KB
testcase_13 AC 73 ms
70,984 KB
testcase_14 AC 74 ms
71,292 KB
testcase_15 AC 75 ms
71,324 KB
testcase_16 AC 74 ms
71,464 KB
testcase_17 AC 74 ms
71,084 KB
testcase_18 AC 74 ms
71,100 KB
testcase_19 AC 73 ms
71,168 KB
testcase_20 AC 75 ms
71,316 KB
testcase_21 AC 73 ms
71,488 KB
testcase_22 AC 75 ms
71,368 KB
testcase_23 AC 74 ms
71,224 KB
testcase_24 AC 74 ms
71,208 KB
testcase_25 AC 73 ms
71,272 KB
testcase_26 AC 74 ms
71,256 KB
testcase_27 AC 75 ms
71,360 KB
testcase_28 AC 74 ms
71,260 KB
testcase_29 AC 74 ms
70,928 KB
testcase_30 AC 75 ms
71,068 KB
testcase_31 AC 73 ms
71,048 KB
testcase_32 AC 74 ms
70,932 KB
testcase_33 AC 74 ms
71,144 KB
testcase_34 AC 74 ms
71,248 KB
testcase_35 AC 74 ms
71,088 KB
testcase_36 AC 73 ms
71,084 KB
testcase_37 AC 74 ms
70,932 KB
testcase_38 AC 74 ms
70,932 KB
testcase_39 AC 73 ms
71,396 KB
testcase_40 AC 75 ms
71,504 KB
testcase_41 AC 75 ms
71,188 KB
testcase_42 AC 76 ms
71,184 KB
testcase_43 AC 74 ms
71,424 KB
testcase_44 AC 76 ms
71,188 KB
testcase_45 AC 75 ms
71,432 KB
testcase_46 AC 75 ms
71,484 KB
testcase_47 AC 73 ms
71,456 KB
testcase_48 AC 75 ms
71,072 KB
testcase_49 AC 72 ms
71,512 KB
testcase_50 AC 75 ms
71,296 KB
testcase_51 AC 74 ms
71,404 KB
testcase_52 AC 77 ms
71,436 KB
testcase_53 AC 75 ms
70,932 KB
testcase_54 AC 73 ms
71,160 KB
testcase_55 AC 74 ms
71,184 KB
testcase_56 AC 74 ms
71,488 KB
testcase_57 AC 74 ms
71,364 KB
testcase_58 AC 73 ms
71,072 KB
testcase_59 AC 76 ms
71,404 KB
testcase_60 AC 75 ms
71,464 KB
testcase_61 AC 75 ms
71,168 KB
testcase_62 AC 75 ms
71,372 KB
testcase_63 AC 75 ms
71,444 KB
testcase_64 AC 75 ms
71,088 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
l=list(map(int,input().split()))
import math
a=0
for i in range(N-1):
    a=math.gcd(a,math.gcd(l[i],l[i+1]))
ans=[]
for i in l:
    ans.append(i//a)
le=""
for i in ans:
    le+=str(i)
    le+=":"
print(le[:-1])
0