結果

問題 No.494 yukicoder
ユーザー samplelpmas
提出日時 2017-04-08 00:07:50
言語 Java
(openjdk 23)
結果
AC  
実行時間 123 ms / 2,000 ms
コード長 339 bytes
コンパイル時間 2,077 ms
コンパイル使用メモリ 74,992 KB
実行使用メモリ 54,272 KB
最終ジャッジ日時 2024-07-16 03:29:26
合計ジャッジ時間 3,874 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

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