結果
問題 |
No.736 約比
|
ユーザー |
![]() |
提出日時 | 2018-09-28 22:49:47 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 466 bytes |
コンパイル時間 | 277 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 11,648 KB |
最終ジャッジ日時 | 2024-10-12 07:06:55 |
合計ジャッジ時間 | 4,080 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 65 |
ソースコード
from collections import defaultdict,deque import sys,heapq,bisect,math,itertools,string,queue,datetime sys.setrecursionlimit(10**8) INF = float('inf') mod = 10**9+7 eps = 10**-7 def inpl(): return list(map(int, input().split())) def inpls(): return list(input().split()) N = int(input()) aa = inpl() def gcd(a,b): while b: a,b = b, a%b return a y = aa[0] for a in aa: y = gcd(y,a) print(y) ans = list(map(str,map(lambda x:x//y,aa))) print(':'.join(ans))