結果

問題 No.537 ユーザーID
ユーザー fal_rndfal_rnd
提出日時 2017-08-25 23:25:53
言語 Java21
(openjdk 21)
結果
AC  
実行時間 279 ms / 2,000 ms
コード長 645 bytes
コンパイル時間 2,391 ms
コンパイル使用メモリ 82,028 KB
実行使用メモリ 46,172 KB
最終ジャッジ日時 2024-04-23 15:45:34
合計ジャッジ時間 10,738 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 175 ms
42,932 KB
testcase_01 AC 180 ms
42,676 KB
testcase_02 AC 180 ms
43,284 KB
testcase_03 AC 193 ms
43,180 KB
testcase_04 AC 177 ms
43,236 KB
testcase_05 AC 176 ms
43,232 KB
testcase_06 AC 170 ms
43,188 KB
testcase_07 AC 183 ms
43,400 KB
testcase_08 AC 179 ms
43,244 KB
testcase_09 AC 190 ms
43,300 KB
testcase_10 AC 190 ms
43,548 KB
testcase_11 AC 183 ms
43,480 KB
testcase_12 AC 184 ms
43,316 KB
testcase_13 AC 196 ms
43,276 KB
testcase_14 AC 182 ms
43,160 KB
testcase_15 AC 189 ms
43,452 KB
testcase_16 AC 181 ms
43,296 KB
testcase_17 AC 180 ms
43,264 KB
testcase_18 AC 206 ms
43,424 KB
testcase_19 AC 201 ms
43,460 KB
testcase_20 AC 201 ms
43,380 KB
testcase_21 AC 204 ms
43,632 KB
testcase_22 AC 210 ms
43,500 KB
testcase_23 AC 198 ms
43,704 KB
testcase_24 AC 186 ms
43,432 KB
testcase_25 AC 208 ms
43,588 KB
testcase_26 AC 209 ms
43,632 KB
testcase_27 AC 210 ms
43,452 KB
testcase_28 AC 248 ms
45,820 KB
testcase_29 AC 279 ms
46,172 KB
testcase_30 AC 269 ms
45,104 KB
testcase_31 AC 204 ms
43,472 KB
testcase_32 AC 177 ms
42,932 KB
testcase_33 AC 276 ms
45,624 KB
testcase_34 AC 209 ms
43,412 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.HashSet;
import java.util.Scanner;
import java.util.stream.IntStream;

public class Main{
	static IntStream REPS(int v){return IntStream.range(0,v);}
	static IntStream REPS(int l,int r){return IntStream.rangeClosed(l,r);}
	static IntStream INS(int n) {return REPS(n).map(i->getInt());}
	static Scanner s=new Scanner(System.in);
	static int getInt(){return Integer.parseInt(s.next());}

	public static void main(String[]$){
		long n=s.nextLong();
		int sq=(int)Math.sqrt(n)+1;
		HashSet<String>r=new HashSet<>();
		for(int i=1;i<sq;++i)if(n%i==0) {
			r.add(""+i+n/i);
			r.add(""+n/i+i);
		}
		System.out.println(r.size());
	}
}
0