結果

問題 No.537 ユーザーID
ユーザー Tsukasa_TypeTsukasa_Type
提出日時 2018-02-11 00:04:27
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 302 bytes
コンパイル時間 1,747 ms
コンパイル使用メモリ 73,888 KB
実行使用メモリ 41,672 KB
最終ジャッジ日時 2024-04-24 10:18:33
合計ジャッジ時間 6,716 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 101 ms
40,440 KB
testcase_01 AC 97 ms
40,152 KB
testcase_02 AC 100 ms
40,308 KB
testcase_03 AC 109 ms
41,196 KB
testcase_04 AC 111 ms
41,376 KB
testcase_05 AC 112 ms
41,388 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 102 ms
40,344 KB
testcase_10 AC 98 ms
39,796 KB
testcase_11 AC 101 ms
40,348 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 124 ms
41,672 KB
testcase_19 AC 117 ms
40,364 KB
testcase_20 AC 113 ms
40,332 KB
testcase_21 AC 121 ms
41,360 KB
testcase_22 AC 128 ms
41,524 KB
testcase_23 AC 124 ms
41,356 KB
testcase_24 AC 119 ms
41,276 KB
testcase_25 AC 119 ms
40,436 KB
testcase_26 AC 124 ms
41,416 KB
testcase_27 AC 118 ms
41,260 KB
testcase_28 AC 118 ms
41,616 KB
testcase_29 AC 126 ms
41,280 KB
testcase_30 AC 120 ms
41,420 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 (i*i==n) {num++;}
			else if (n%i==0) {num += 2;}
		}
		System.out.println(num);
	}
}
0