結果
問題 | No.2480 Sequence Sum |
ユーザー |
|
提出日時 | 2023-09-22 21:39:28 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 45 ms / 500 ms |
コード長 | 217 bytes |
コンパイル時間 | 304 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 58,112 KB |
最終ジャッジ日時 | 2024-07-26 14:34:52 |
合計ジャッジ時間 | 1,612 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
ソースコード
n = int(input()) def divisor(n: int) -> list: r = [] for i in range(1, int(n ** 0.5) + 1): if n % i != 0: continue r.append(i) if i * i != n: r.append(n // i) return sorted(r) print(n - len(divisor(n)))