結果
問題 |
No.2795 Perfect Number
|
ユーザー |
|
提出日時 | 2024-06-28 21:50:45 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 169 bytes |
コンパイル時間 | 82 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 16,384 KB |
最終ジャッジ日時 | 2024-06-28 21:50:49 |
合計ジャッジ時間 | 3,768 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 1 WA * 1 TLE * 1 -- * 32 |
ソースコード
import math n = int(input()) ans = 0 for i in range(1, int(math.sqrt(n)) + 1): if n % i == 0: ans += i if ans == n: print('Yes') else: print('No')