結果
問題 |
No.494 yukicoder
|
ユーザー |
|
提出日時 | 2022-02-09 15:41:11 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 124 ms / 2,000 ms |
コード長 | 665 bytes |
コンパイル時間 | 2,381 ms |
コンパイル使用メモリ | 74,444 KB |
実行使用メモリ | 41,468 KB |
最終ジャッジ日時 | 2024-06-24 19:25:50 |
合計ジャッジ時間 | 3,752 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 7 |
ソースコード
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.next(); int index = str.indexOf("?"); switch (index) { 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; } sc.close(); } }