結果

問題 No.494 yukicoder
ユーザー YamaKasaYamaKasa
提出日時 2018-05-06 17:26:38
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 2,000 ms
コード長 394 bytes
コンパイル時間 2,183 ms
コンパイル使用メモリ 72,116 KB
実行使用メモリ 56,108 KB
最終ジャッジ日時 2023-09-10 10:47:13
合計ジャッジ時間 3,915 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
56,052 KB
testcase_01 AC 119 ms
55,744 KB
testcase_02 AC 118 ms
55,644 KB
testcase_03 AC 120 ms
56,036 KB
testcase_04 AC 118 ms
55,820 KB
testcase_05 AC 120 ms
55,788 KB
testcase_06 AC 122 ms
55,760 KB
testcase_07 AC 119 ms
55,904 KB
testcase_08 AC 120 ms
56,108 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String S = scan.next();
		String s = "yukicoder";
		scan.close();
		int index = 0;
		for(int i = 0; i < S.length(); i++) {
			char c = S.charAt(i);
			if(c == '?') {
				index = i;
				break;
			}
		}
		char ans = s.charAt(index);
		System.out.println(ans);
	}
}
0