結果

問題 No.537 ユーザーID
ユーザー uafr_csuafr_cs
提出日時 2017-10-28 17:37:05
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 461 bytes
コンパイル時間 2,091 ms
コンパイル使用メモリ 74,180 KB
実行使用メモリ 55,924 KB
最終ジャッジ日時 2024-05-01 21:10:19
合計ジャッジ時間 8,183 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
41,080 KB
testcase_01 AC 137 ms
41,256 KB
testcase_02 AC 135 ms
41,340 KB
testcase_03 AC 133 ms
41,272 KB
testcase_04 AC 133 ms
41,284 KB
testcase_05 AC 132 ms
40,952 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 134 ms
41,156 KB
testcase_10 AC 134 ms
41,164 KB
testcase_11 AC 133 ms
41,208 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 145 ms
41,396 KB
testcase_19 AC 149 ms
41,188 KB
testcase_20 AC 148 ms
41,300 KB
testcase_21 AC 146 ms
41,168 KB
testcase_22 AC 152 ms
41,160 KB
testcase_23 AC 133 ms
40,124 KB
testcase_24 AC 142 ms
41,328 KB
testcase_25 AC 147 ms
41,452 KB
testcase_26 AC 147 ms
41,368 KB
testcase_27 AC 147 ms
41,316 KB
testcase_28 AC 141 ms
41,128 KB
testcase_29 AC 148 ms
41,536 KB
testcase_30 AC 134 ms
39,928 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

public class Main {
	
	public static long MOD = 1000000007;
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		final long N = sc.nextLong();
		
		long answer = 0;
		for(long i = 1; i * i <= N; i++){
			if(N % i != 0){ continue; }
			
			if(i * i == N){
				answer += 1;
			}else{
				answer += 2;
			}
		}
		
		System.out.println(answer);
	}
}
0