結果

問題 No.494 yukicoder
ユーザー GrenacheGrenache
提出日時 2017-03-24 22:22:17
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 2,000 ms
コード長 705 bytes
コンパイル時間 4,529 ms
コンパイル使用メモリ 72,252 KB
実行使用メモリ 55,772 KB
最終ジャッジ日時 2023-09-20 06:24:23
合計ジャッジ時間 6,485 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,528 KB
testcase_01 AC 121 ms
55,608 KB
testcase_02 AC 122 ms
55,512 KB
testcase_03 AC 124 ms
55,504 KB
testcase_04 AC 124 ms
55,496 KB
testcase_05 AC 122 ms
55,668 KB
testcase_06 AC 121 ms
55,612 KB
testcase_07 AC 123 ms
55,368 KB
testcase_08 AC 121 ms
55,772 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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


public class Main_yukicoder494 {

	private static Scanner sc;
	private static Printer pr;

	private static void solve() {
		char[] yukicoder = "yukicoder".toCharArray();
		char[] s = sc.next().toCharArray();
		int n = yukicoder.length;

		for (int i = 0; i < n; i++) {
			if (s[i] != yukicoder[i]) {
				pr.println(yukicoder[i]);
				break;
			}
		}
	}

	// ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);

		solve();

		pr.close();
		sc.close();
	}

	private static class Printer extends PrintWriter {
		Printer(PrintStream out) {
			super(out);
		}
	}
}
0