結果

問題 No.537 ユーザーID
ユーザー tsunabittsunabit
提出日時 2019-06-16 18:24:19
言語 Java21
(openjdk 21)
結果
AC  
実行時間 289 ms / 2,000 ms
コード長 442 bytes
コンパイル時間 3,712 ms
コンパイル使用メモリ 74,712 KB
実行使用メモリ 62,068 KB
最終ジャッジ日時 2023-08-16 02:36:15
合計ジャッジ時間 12,930 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 192 ms
56,708 KB
testcase_01 AC 191 ms
56,708 KB
testcase_02 AC 188 ms
57,168 KB
testcase_03 AC 187 ms
57,336 KB
testcase_04 AC 189 ms
56,960 KB
testcase_05 AC 191 ms
57,036 KB
testcase_06 AC 190 ms
57,312 KB
testcase_07 AC 191 ms
56,872 KB
testcase_08 AC 194 ms
57,068 KB
testcase_09 AC 190 ms
57,168 KB
testcase_10 AC 190 ms
57,328 KB
testcase_11 AC 193 ms
57,108 KB
testcase_12 AC 193 ms
57,100 KB
testcase_13 AC 189 ms
57,232 KB
testcase_14 AC 187 ms
57,348 KB
testcase_15 AC 191 ms
57,072 KB
testcase_16 AC 189 ms
57,188 KB
testcase_17 AC 189 ms
56,892 KB
testcase_18 AC 210 ms
55,464 KB
testcase_19 AC 207 ms
56,956 KB
testcase_20 AC 206 ms
57,216 KB
testcase_21 AC 212 ms
57,112 KB
testcase_22 AC 212 ms
57,176 KB
testcase_23 AC 214 ms
57,268 KB
testcase_24 AC 197 ms
57,240 KB
testcase_25 AC 214 ms
57,256 KB
testcase_26 AC 222 ms
57,440 KB
testcase_27 AC 211 ms
56,916 KB
testcase_28 AC 261 ms
60,140 KB
testcase_29 AC 289 ms
60,816 KB
testcase_30 AC 277 ms
62,068 KB
testcase_31 AC 208 ms
57,416 KB
testcase_32 AC 206 ms
57,296 KB
testcase_33 AC 287 ms
61,008 KB
testcase_34 AC 218 ms
57,024 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;
import java.math.*;

public class No537 {
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	long n = sc.nextLong(), c = 0;
    	HashSet<String> x = new HashSet<String>();
    	for(int i = 1; i <= Math.sqrt(n); i++) {
    		if(n % i == 0) {
    			long j = n / i;
    			x.add(i+""+j);
				x.add(j+""+i);
    		}
    	}
    	System.out.println(x.size());
    }
}
0