結果
問題 | No.278 連続する整数の和(2) |
ユーザー |
|
提出日時 | 2016-09-18 16:22:51 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 265 ms / 2,000 ms |
コード長 | 164 bytes |
コンパイル時間 | 65 ms |
コンパイル使用メモリ | 6,948 KB |
実行使用メモリ | 6,528 KB |
最終ジャッジ日時 | 2024-12-23 09:12:22 |
合計ジャッジ時間 | 2,867 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 18 |
ソースコード
#yuki_278import mathn=int(raw_input())if n%2==0:n/=2res=0for i in xrange(1,int(math.sqrt(n))+1):if n==i*i:res+=ielif n%i==0:res+=n/i+iprint res