結果

問題 No.537 ユーザーID
ユーザー Tsukasa_TypeTsukasa_Type
提出日時 2018-02-10 23:58:48
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 271 bytes
コンパイル時間 2,230 ms
コンパイル使用メモリ 74,240 KB
実行使用メモリ 54,292 KB
最終ジャッジ日時 2024-04-24 09:57:00
合計ジャッジ時間 8,620 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
41,192 KB
testcase_01 AC 130 ms
41,364 KB
testcase_02 WA -
testcase_03 AC 131 ms
41,192 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 135 ms
41,364 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 139 ms
41,144 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 144 ms
41,268 KB
testcase_19 AC 145 ms
41,288 KB
testcase_20 AC 144 ms
41,632 KB
testcase_21 AC 137 ms
41,332 KB
testcase_22 AC 145 ms
41,156 KB
testcase_23 AC 140 ms
41,300 KB
testcase_24 AC 136 ms
41,428 KB
testcase_25 AC 147 ms
41,116 KB
testcase_26 WA -
testcase_27 AC 144 ms
41,472 KB
testcase_28 AC 141 ms
41,620 KB
testcase_29 AC 146 ms
41,312 KB
testcase_30 AC 151 ms
41,668 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		long n = sc.nextLong();
		long num = 0;
		for (long i=1; i<Math.sqrt(n); i++) {
			if (n%i==0) {num++;}
		}
		System.out.println(num*2);
	}
}
0