結果
| 問題 | No.2480 Sequence Sum |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-09-23 10:19:18 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 29 ms / 500 ms |
| コード長 | 153 bytes |
| 記録 | |
| コンパイル時間 | 254 ms |
| コンパイル使用メモリ | 84,736 KB |
| 実行使用メモリ | 57,856 KB |
| 最終ジャッジ日時 | 2026-04-03 17:15:59 |
| 合計ジャッジ時間 | 1,171 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
ソースコード
n = int(input())
ans = n
f = 1
while f * f <= n:
if n % f == 0:
ans -= 1
if n // f != f:
ans -= 1
f += 1
print(ans)