結果

問題 No.494 yukicoder
ユーザー lsinf26
提出日時 2017-06-02 00:51:16
言語 Java
(openjdk 23)
結果
AC  
実行時間 119 ms / 2,000 ms
コード長 477 bytes
コンパイル時間 2,147 ms
コンパイル使用メモリ 74,392 KB
実行使用メモリ 41,012 KB
最終ジャッジ日時 2024-09-21 21:44:11
合計ジャッジ時間 3,507 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

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