結果

問題 No.537 ユーザーID
ユーザー Tsukasa_TypeTsukasa_Type
提出日時 2018-02-11 00:01:16
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 311 bytes
コンパイル時間 2,102 ms
コンパイル使用メモリ 73,884 KB
実行使用メモリ 41,852 KB
最終ジャッジ日時 2024-04-24 10:15:26
合計ジャッジ時間 7,690 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 112 ms
41,040 KB
testcase_01 AC 108 ms
40,080 KB
testcase_02 WA -
testcase_03 AC 127 ms
41,532 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 126 ms
41,232 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 122 ms
41,172 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 145 ms
41,224 KB
testcase_19 AC 137 ms
40,204 KB
testcase_20 AC 143 ms
41,104 KB
testcase_21 AC 136 ms
40,984 KB
testcase_22 AC 146 ms
41,292 KB
testcase_23 AC 139 ms
41,276 KB
testcase_24 AC 129 ms
41,484 KB
testcase_25 AC 147 ms
40,744 KB
testcase_26 WA -
testcase_27 AC 140 ms
41,216 KB
testcase_28 AC 131 ms
41,332 KB
testcase_29 AC 143 ms
41,260 KB
testcase_30 AC 127 ms
40,024 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 && i*i==n) {num++;}
			else if (n%i==0) {num += 2;}
		}
		System.out.println(num);
	}
}
0