結果

問題 No.494 yukicoder
ユーザー samplelpmassamplelpmas
提出日時 2017-04-08 00:08:22
言語 Java21
(openjdk 21)
結果
AC  
実行時間 114 ms / 2,000 ms
コード長 339 bytes
コンパイル時間 2,179 ms
コンパイル使用メモリ 71,052 KB
実行使用メモリ 56,812 KB
最終ジャッジ日時 2023-09-23 03:11:00
合計ジャッジ時間 3,614 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
56,812 KB
testcase_01 AC 111 ms
55,384 KB
testcase_02 AC 111 ms
55,652 KB
testcase_03 AC 114 ms
55,600 KB
testcase_04 AC 114 ms
55,784 KB
testcase_05 AC 112 ms
55,972 KB
testcase_06 AC 113 ms
55,396 KB
testcase_07 AC 112 ms
55,860 KB
testcase_08 AC 112 ms
55,968 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        final String YUKICODER = "yukicoder";

        String note = sc.next();
        int questionIndex = note.indexOf('?');

        System.out.println(YUKICODER.charAt(questionIndex));

    }

}
0