結果
問題 | No.494 yukicoder |
ユーザー |
|
提出日時 | 2017-10-07 01:58:51 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 52 ms / 2,000 ms |
コード長 | 1,133 bytes |
コンパイル時間 | 3,441 ms |
コンパイル使用メモリ | 73,404 KB |
実行使用メモリ | 37,076 KB |
最終ジャッジ日時 | 2024-11-17 03:16:42 |
合計ジャッジ時間 | 4,519 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 7 |
ソースコード
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class No494 { public static void main(String[] args) { try { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); Hantei(str); } catch (IOException e) { e.getStackTrace(); } } public static void Hantei(String s){ int a = s.indexOf("?"); switch(a){ case 0: System.out.println("y"); break; case 1: System.out.println("u"); break; case 2: System.out.println("k"); break; case 3: System.out.println("i"); break; case 4: System.out.println("c"); break; case 5: System.out.println("o"); break; case 6: System.out.println("d"); break; case 7: System.out.println("e"); break; case 8: System.out.println("r"); break; } } }