結果

問題 No.494 yukicoder
ユーザー samplelpmassamplelpmas
提出日時 2017-04-08 00:07:50
言語 Java21
(openjdk 21)
結果
AC  
実行時間 118 ms / 2,000 ms
コード長 339 bytes
コンパイル時間 1,948 ms
コンパイル使用メモリ 72,152 KB
実行使用メモリ 56,016 KB
最終ジャッジ日時 2023-09-23 03:10:55
合計ジャッジ時間 3,784 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
55,576 KB
testcase_01 AC 115 ms
55,668 KB
testcase_02 AC 116 ms
55,612 KB
testcase_03 AC 116 ms
55,384 KB
testcase_04 AC 117 ms
55,868 KB
testcase_05 AC 117 ms
55,704 KB
testcase_06 AC 118 ms
55,800 KB
testcase_07 AC 118 ms
56,016 KB
testcase_08 AC 118 ms
55,596 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