結果

問題 No.736 約比
ユーザー fV9TwBhUoa9S3eVfV9TwBhUoa9S3eV
提出日時 2019-10-25 10:49:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 316 bytes
コンパイル時間 263 ms
コンパイル使用メモリ 10,584 KB
実行使用メモリ 8,092 KB
最終ジャッジ日時 2023-09-26 12:46:20
合計ジャッジ時間 3,714 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
8,016 KB
testcase_01 AC 17 ms
7,984 KB
testcase_02 AC 16 ms
7,924 KB
testcase_03 AC 16 ms
8,044 KB
testcase_04 AC 17 ms
7,904 KB
testcase_05 AC 16 ms
8,012 KB
testcase_06 AC 18 ms
8,088 KB
testcase_07 AC 17 ms
7,904 KB
testcase_08 AC 16 ms
7,848 KB
testcase_09 AC 16 ms
7,892 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 16 ms
7,900 KB
testcase_24 AC 16 ms
7,932 KB
testcase_25 WA -
testcase_26 AC 16 ms
8,008 KB
testcase_27 AC 15 ms
7,948 KB
testcase_28 AC 16 ms
7,900 KB
testcase_29 AC 16 ms
8,048 KB
testcase_30 AC 16 ms
7,844 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 16 ms
8,012 KB
testcase_34 WA -
testcase_35 WA -
testcase_36 AC 15 ms
7,896 KB
testcase_37 AC 15 ms
7,892 KB
testcase_38 AC 15 ms
8,052 KB
testcase_39 AC 16 ms
7,884 KB
testcase_40 AC 16 ms
7,904 KB
testcase_41 AC 16 ms
7,924 KB
testcase_42 WA -
testcase_43 WA -
testcase_44 WA -
testcase_45 WA -
testcase_46 WA -
testcase_47 WA -
testcase_48 WA -
testcase_49 WA -
testcase_50 WA -
testcase_51 WA -
testcase_52 WA -
testcase_53 WA -
testcase_54 WA -
testcase_55 WA -
testcase_56 WA -
testcase_57 WA -
testcase_58 WA -
testcase_59 WA -
testcase_60 WA -
testcase_61 WA -
testcase_62 WA -
testcase_63 AC 16 ms
7,928 KB
testcase_64 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

# No.736 約比
from math import gcd

n = int(input())
a = [int(s) for s in input().split()]
greatest_common_divisor = a[0]

for i in range(1, n):
    greatest_common_divisor = gcd(greatest_common_divisor, a[i])

tmp = str(a[0])
for i in range(1, n):
    tmp += ':' + str(a[i] // greatest_common_divisor)

print(tmp)
0