結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
55,680 KB
testcase_01 AC 117 ms
55,824 KB
testcase_02 AC 116 ms
55,376 KB
testcase_03 AC 115 ms
55,584 KB
testcase_04 AC 114 ms
55,984 KB
testcase_05 AC 118 ms
56,036 KB
testcase_06 AC 118 ms
55,704 KB
testcase_07 AC 117 ms
56,348 KB
testcase_08 AC 118 ms
55,784 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 memo = sc.next();
        int questionIndex = memo.indexOf('?');

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

    }

}
0