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