結果
| 問題 | 
                            No.888 約数の総和
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2019-11-23 12:15:21 | 
| 言語 | Fortran  (gFortran 14.2.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 12 ms / 2,000 ms | 
| コード長 | 355 bytes | 
| コンパイル時間 | 157 ms | 
| コンパイル使用メモリ | 31,360 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-10-11 06:54:26 | 
| 合計ジャッジ時間 | 1,298 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 30 | 
ソースコード
program y888
    implicit none
    integer(8)::N,N_sqrt,i
    integer(8)::result=0
    read(5,*)N
    N_sqrt=int(sqrt(real(N)))
    do i=1,N_sqrt
        if(mod(N,i)==0)then
            result=result+i
            if(i/=N/i)then
                result=result+N/i
            end if
        end if
    end do
    print'(i0)',result
    
end program y888