結果

問題 No.888 約数の総和
ユーザー watarimaycry2
提出日時 2019-09-20 22:27:39
言語 Java
(openjdk 23)
結果
TLE  
実行時間 -
コード長 459 bytes
コンパイル時間 2,206 ms
コンパイル使用メモリ 75,368 KB
実行使用メモリ 61,568 KB
最終ジャッジ日時 2024-09-14 18:19:32
合計ジャッジ時間 8,620 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15 TLE * 1 -- * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class Main {
	public static void myout(Object text){//standard output
		System.out.println(text);
	}
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		//String tmp = sc.next();
		//int tmp = sc.nextInt();
		//Long tmp = sc.nextLong();
		Long n = sc.nextLong();
		Long output = new Long(0);
		for(int i = 1; i <= n; i++){
		    if(n % i == 0){
		        output += i;
		    }
		}
		myout(output);
	}
}
0