結果
| 問題 |
No.756 チャンパーノウン定数 (1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-12-04 14:08:14 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 109 ms / 2,000 ms |
| コード長 | 448 bytes |
| コンパイル時間 | 1,626 ms |
| コンパイル使用メモリ | 74,756 KB |
| 実行使用メモリ | 53,976 KB |
| 最終ジャッジ日時 | 2024-07-07 06:12:25 |
| 合計ジャッジ時間 | 4,755 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
import java.util.Scanner;
class Main {
static char C[] = new char[101];
static int top = 0;
public static void push(int i) {
String tmp = String.valueOf(i);
for (int j = 0; j < tmp.length(); ++j) {
C[top] = tmp.charAt(j);
++top;
}
}
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int D = sc.nextInt();
sc.close();
for (int i = 1; i <= 55; ++i) push(i);
System.out.print(C[D - 1]);
}
}