結果
| 問題 |
No.2480 Sequence Sum
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-09-23 10:19:18 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 44 ms / 500 ms |
| コード長 | 153 bytes |
| コンパイル時間 | 305 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 57,984 KB |
| 最終ジャッジ日時 | 2024-07-26 14:41:56 |
| 合計ジャッジ時間 | 1,523 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)