結果

問題 No.494 yukicoder
ユーザー jimanojimano
提出日時 2018-01-22 23:04:37
言語 Java21
(openjdk 21)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 564 bytes
コンパイル時間 4,512 ms
コンパイル使用メモリ 71,760 KB
実行使用メモリ 49,388 KB
最終ジャッジ日時 2023-08-26 22:17:25
合計ジャッジ時間 4,290 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
49,060 KB
testcase_01 AC 41 ms
49,124 KB
testcase_02 AC 41 ms
49,216 KB
testcase_03 AC 42 ms
49,108 KB
testcase_04 AC 41 ms
49,056 KB
testcase_05 AC 42 ms
49,172 KB
testcase_06 AC 41 ms
49,388 KB
testcase_07 AC 41 ms
49,252 KB
testcase_08 AC 40 ms
49,352 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package me.yukicoder.lv1;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;


public class No0494 {
	public static void main(String[] args) {
		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			char[] input = br.readLine().toCharArray();
			char[] correct = "yukicoder".toCharArray();

			for (int i = 0; i < input.length; i++) {
				if (input[i] != correct[i]) {
					System.out.println(correct[i]);
					return;
				}
			}

		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
0