結果

問題 No.494 yukicoder
ユーザー lsinf26lsinf26
提出日時 2017-06-02 00:51:16
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 477 bytes
コンパイル時間 2,865 ms
コンパイル使用メモリ 74,488 KB
実行使用メモリ 57,468 KB
最終ジャッジ日時 2023-10-21 20:19:01
合計ジャッジ時間 3,908 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
57,328 KB
testcase_01 AC 127 ms
57,320 KB
testcase_02 AC 127 ms
57,304 KB
testcase_03 AC 126 ms
57,272 KB
testcase_04 AC 124 ms
57,304 KB
testcase_05 AC 123 ms
57,376 KB
testcase_06 AC 125 ms
57,468 KB
testcase_07 AC 122 ms
55,320 KB
testcase_08 AC 123 ms
57,292 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main{
    static final Scanner sc = new Scanner(System.in);
    public static void main(String[] args){
        String str = sc.next();
        
        System.out.println(search(str));
    }
    
    static char search(String str){
        String moto = "yukicoder";
        for(int i=0; i<str.length(); i++){
            if(str.charAt(i) == '?'){
                return moto.charAt(i);
            }
        }
        return 0;
    }
}
0