結果
問題 |
No.937 Ultra Sword
|
ユーザー |
|
提出日時 | 2019-11-29 23:17:23 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 389 bytes |
コンパイル時間 | 114 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 20,848 KB |
最終ジャッジ日時 | 2024-11-21 02:42:48 |
合計ジャッジ時間 | 4,843 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 WA * 40 |
ソースコード
N = int(input()) A = [int(i) for i in input().split()] # for a in A: # print(bin(a)) # print("20%d".format(bin(a))) p = A[0] for a in range(1,len(A)): b = A[a] if b > p: p, b = b, p while p % b != 0: # print(p,b) p %= b p, b = b, p%b # print(p,b) p = b # print(p) # print(p) # print(bin(p)) print(sum([i//p for i in A]))