結果

問題 No.494 yukicoder
ユーザー あsdfあsdf
提出日時 2017-04-01 22:45:24
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 344 bytes
コンパイル時間 2,340 ms
コンパイル使用メモリ 72,212 KB
実行使用メモリ 55,736 KB
最終ジャッジ日時 2023-09-22 02:27:03
合計ジャッジ時間 4,037 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,720 KB
testcase_01 AC 119 ms
53,548 KB
testcase_02 AC 121 ms
55,736 KB
testcase_03 AC 127 ms
55,704 KB
testcase_04 AC 122 ms
55,688 KB
testcase_05 AC 124 ms
55,724 KB
testcase_06 AC 124 ms
55,600 KB
testcase_07 AC 127 ms
55,484 KB
testcase_08 AC 122 ms
55,712 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
  public static void main(String[] args){
    String mozi = "yukicoder";
    Scanner cs = new Scanner(System.in);
    String a = cs.next();
    int i = 0;
    while(true){
      if(mozi.charAt(i) != a.charAt(i)){
        System.out.println(mozi.charAt(i));
        break;
      }
      i++;
    }
  }
}
0