結果
問題 | No.537 ユーザーID |
ユーザー | taku-tech |
提出日時 | 2021-05-20 19:26:59 |
言語 | Java21 (openjdk 21) |
結果 |
RE
|
実行時間 | - |
コード長 | 438 bytes |
コンパイル時間 | 3,703 ms |
コンパイル使用メモリ | 77,252 KB |
実行使用メモリ | 42,700 KB |
最終ジャッジ日時 | 2024-04-18 14:07:31 |
合計ジャッジ時間 | 9,388 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 145 ms
42,412 KB |
testcase_01 | AC | 145 ms
42,396 KB |
testcase_02 | AC | 157 ms
42,316 KB |
testcase_03 | AC | 152 ms
42,120 KB |
testcase_04 | AC | 145 ms
42,280 KB |
testcase_05 | AC | 143 ms
42,360 KB |
testcase_06 | AC | 150 ms
42,444 KB |
testcase_07 | AC | 148 ms
42,496 KB |
testcase_08 | AC | 169 ms
42,436 KB |
testcase_09 | AC | 144 ms
42,700 KB |
testcase_10 | AC | 162 ms
42,496 KB |
testcase_11 | AC | 146 ms
42,460 KB |
testcase_12 | AC | 135 ms
42,252 KB |
testcase_13 | AC | 144 ms
42,636 KB |
testcase_14 | AC | 149 ms
42,552 KB |
testcase_15 | AC | 228 ms
42,680 KB |
testcase_16 | AC | 179 ms
42,700 KB |
testcase_17 | AC | 290 ms
42,540 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 | - |
ソースコード
package user_id; import java.util.HashSet; import java.util.Scanner; import java.util.Set; public class UseId01 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); Set<String> X = new HashSet<>(); for(int i = 1; i <= N; i++) { for(int j = 1; j <= N; j++) { if(i * j == N) { X.add("" + i + j); } } } System.out.println(X.size()); sc.close(); } }