結果

問題 No.537 ユーザーID
ユーザー 37zigen37zigen
提出日時 2020-02-18 15:43:00
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 465 bytes
コンパイル時間 2,243 ms
コンパイル使用メモリ 75,204 KB
実行使用メモリ 56,296 KB
最終ジャッジ日時 2024-04-16 04:10:01
合計ジャッジ時間 7,875 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
41,444 KB
testcase_01 AC 118 ms
40,220 KB
testcase_02 AC 114 ms
40,272 KB
testcase_03 AC 132 ms
41,208 KB
testcase_04 AC 132 ms
41,096 KB
testcase_05 AC 130 ms
41,332 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 133 ms
41,076 KB
testcase_10 AC 130 ms
41,320 KB
testcase_11 AC 126 ms
41,336 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 141 ms
41,496 KB
testcase_19 AC 144 ms
41,344 KB
testcase_20 AC 129 ms
40,292 KB
testcase_21 AC 144 ms
41,344 KB
testcase_22 AC 145 ms
41,656 KB
testcase_23 AC 141 ms
41,244 KB
testcase_24 AC 122 ms
40,364 KB
testcase_25 AC 143 ms
41,388 KB
testcase_26 AC 133 ms
40,368 KB
testcase_27 AC 140 ms
41,120 KB
testcase_28 AC 140 ms
41,148 KB
testcase_29 AC 145 ms
41,504 KB
testcase_30 AC 145 ms
41,200 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Arrays;
import java.util.Scanner;

class Main {
	public static void main(String[] args) throws Exception {
		new Main().run();
	}
	
	void run() {
		Scanner sc=new Scanner(System.in);
		long N=sc.nextLong();
		int ans=0;
		for(long div=1;div*div<=N;++div) {
			if(N%div!=0)continue;
			++ans;
			if(N/div!=div)++ans;
		}
		System.out.println(ans);
	}
	
	static void tr(Object... objects) {
		System.out.println(Arrays.deepToString(objects));
	}
	
}
0