結果
| 問題 | 
                            No.888 約数の総和
                             | 
                    
| コンテスト | |
| ユーザー | 
                             fV9TwBhUoa9S3eV
                         | 
                    
| 提出日時 | 2019-10-30 15:13:29 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 303 bytes | 
| コンパイル時間 | 92 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-09-14 21:52:42 | 
| 合計ジャッジ時間 | 4,398 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge6 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 WA * 1 | 
| other | AC * 16 WA * 14 | 
ソースコード
# No.888 約数の総和
n = int(input())
divisors = []
if n == 1:
    divisors = [1]
elif n < 4:
    divisors = [1, n]
else:
    divisors = [1, n]
    for i in range(2, int(n ** 0.5) + 2):
        if n % i == 0:
            divisors.append(i)
            divisors.append(n // i)
print(sum(divisors))
            
            
            
        
            
fV9TwBhUoa9S3eV