結果
問題 | No.888 約数の総和 |
ユーザー |
|
提出日時 | 2019-09-21 17:38:29 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 106 ms / 2,000 ms |
コード長 | 129 bytes |
コンパイル時間 | 221 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,528 KB |
最終ジャッジ日時 | 2024-09-19 03:00:21 |
合計ジャッジ時間 | 2,451 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 30 |
ソースコード
#yuki888n=int(raw_input())res=0for i in xrange(1,int(n**0.5)+1):if n%i==0:res+=i+n/iif i==n/i:res-=n/iprint res