結果
問題 | No.736 約比 |
ユーザー | simamumu |
提出日時 | 2018-09-28 22:50:12 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 37 ms / 2,000 ms |
コード長 | 457 bytes |
コンパイル時間 | 187 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 11,648 KB |
最終ジャッジ日時 | 2024-10-12 07:07:06 |
合計ジャッジ時間 | 4,111 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 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) ans = list(map(str,map(lambda x:x//y,aa))) print(':'.join(ans))