結果
問題 | No.756 チャンパーノウン定数 (1) |
ユーザー | rymg111 |
提出日時 | 2020-09-22 21:59:29 |
言語 | Java19 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 324 bytes |
コンパイル時間 | 2,359 ms |
コンパイル使用メモリ | 71,780 KB |
実行使用メモリ | 56,636 KB |
最終ジャッジ日時 | 2023-09-09 04:31:33 |
合計ジャッジ時間 | 6,064 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge15 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | AC | 122 ms
55,676 KB |
testcase_03 | WA | - |
testcase_04 | AC | 123 ms
56,140 KB |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | AC | 121 ms
55,996 KB |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | AC | 123 ms
56,032 KB |
testcase_11 | WA | - |
testcase_12 | AC | 122 ms
55,832 KB |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | AC | 119 ms
53,976 KB |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | AC | 122 ms
56,176 KB |
ソースコード
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int digit = sc.nextInt(); StringBuilder ckc = new StringBuilder(); ckc.append("0."); for(int i = 1; i < 100; i++) { ckc.append(i); } System.out.println(ckc.charAt(digit - 1)); } }