結果
問題 | No.736 約比 |
ユーザー |
![]() |
提出日時 | 2020-01-08 19:30:44 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 34 ms / 2,000 ms |
コード長 | 377 bytes |
コンパイル時間 | 179 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-11-23 03:04:02 |
合計ジャッジ時間 | 4,018 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 65 |
ソースコード
def gcd_calc(a, b):a, b = a, br = Nonewhile r != 0:r = a % ba = bb = rreturn an = int(input())a_list = list(map(int,input().split()))gcd_a = a_list[0]for i in range(1, n):gcd_a = gcd_calc(gcd_a, a_list[i])res_list = [e // gcd_a for e in a_list]res = ':'.join([str(e) for e in res_list])print(res)