結果
問題 |
No.339 何人が回答したのか
|
ユーザー |
|
提出日時 | 2016-01-30 21:07:46 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 359 bytes |
コンパイル時間 | 119 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-09-21 19:28:14 |
合計ジャッジ時間 | 3,680 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 56 WA * 5 |
ソースコード
n = int(input()) min = 100 sum = 0 list = [] for i in range(n): per = int(input()) if per < min: min = per list.append(per) sum += per isDevide = True for num in range(len(list)): if list[num] % min != 0: isDevide = False break ans = 0 if isDevide == True: for num in range(len(list)): ans += list[num] / min else: ans = sum print(int(ans))