結果
問題 | No.2260 Adic Sum |
ユーザー |
![]() |
提出日時 | 2023-04-07 21:25:28 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 416 ms / 2,000 ms |
コード長 | 259 bytes |
コンパイル時間 | 154 ms |
コンパイル使用メモリ | 82,500 KB |
実行使用メモリ | 178,944 KB |
最終ジャッジ日時 | 2024-10-06 06:54:57 |
合計ジャッジ時間 | 5,310 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 33 |
ソースコード
from collections import Countern, p = map(int, input().split())a = list(map(int, input().split()))amx = max(a)pk = pans = 0while pk <= amx:c = Counter()for x in a:r = x % pkans += c[r]c[r] += 1pk *= pprint(ans)