結果
| 問題 |
No.2480 Sequence Sum
|
| コンテスト | |
| ユーザー |
とりゐ
|
| 提出日時 | 2023-09-22 21:24:03 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 42 ms / 500 ms |
| コード長 | 218 bytes |
| コンパイル時間 | 401 ms |
| コンパイル使用メモリ | 82,324 KB |
| 実行使用メモリ | 58,240 KB |
| 最終ジャッジ日時 | 2024-07-26 14:32:00 |
| 合計ジャッジ時間 | 1,454 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
ソースコード
def divisors(n):
lower,upper=[],[]
i=1
while i*i<=n:
if n%i==0:
lower.append(i)
if i!=n//i:
upper.append(n//i)
i+=1
return lower+upper[::-1]
n=int(input())
print(n-len(divisors(n)))
とりゐ