結果

問題 No.537 ユーザーID
ユーザー fal_rndfal_rnd
提出日時 2017-08-25 23:24:48
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 640 bytes
コンパイル時間 2,316 ms
コンパイル使用メモリ 86,824 KB
実行使用メモリ 55,848 KB
最終ジャッジ日時 2024-04-23 15:45:01
合計ジャッジ時間 7,337 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 134 ms
54,888 KB
testcase_01 AC 129 ms
54,820 KB
testcase_02 AC 136 ms
54,776 KB
testcase_03 AC 140 ms
54,932 KB
testcase_04 AC 135 ms
55,024 KB
testcase_05 AC 129 ms
54,652 KB
testcase_06 AC 136 ms
54,972 KB
testcase_07 AC 126 ms
54,284 KB
testcase_08 AC 136 ms
54,836 KB
testcase_09 AC 146 ms
54,920 KB
testcase_10 AC 138 ms
54,944 KB
testcase_11 AC 131 ms
54,984 KB
testcase_12 AC 135 ms
54,816 KB
testcase_13 AC 131 ms
54,784 KB
testcase_14 AC 121 ms
54,364 KB
testcase_15 AC 131 ms
54,728 KB
testcase_16 AC 117 ms
52,868 KB
testcase_17 AC 133 ms
54,944 KB
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 RE -
testcase_26 RE -
testcase_27 RE -
testcase_28 RE -
testcase_29 RE -
testcase_30 RE -
testcase_31 RE -
testcase_32 RE -
testcase_33 RE -
testcase_34 RE -
権限があれば一括ダウンロードができます

ソースコード

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[]$){
		int n=getInt();
		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