結果
問題 |
No.1233 割り切れない気持ち
|
ユーザー |
|
提出日時 | 2020-09-18 23:04:20 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 199 bytes |
コンパイル時間 | 194 ms |
コンパイル使用メモリ | 82,104 KB |
実行使用メモリ | 114,792 KB |
最終ジャッジ日時 | 2024-06-22 17:12:43 |
合計ジャッジ時間 | 13,715 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 25 TLE * 1 -- * 13 |
ソースコード
N = int(input()) A = list(map(int, input().split())) ans = sum(A)*N A.sort() from bisect import * for a in A: for p in range(a,A[-1]+1,a): ind = bisect_left(A,p) ans -= a*(N-ind) print(ans)