結果
問題 | No.3004 愛国心 |
ユーザー | chiho_miyako |
提出日時 | 2015-04-19 00:39:05 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 132 ms / 5,000 ms |
コード長 | 1,307 bytes |
コンパイル時間 | 3,400 ms |
コンパイル使用メモリ | 81,188 KB |
実行使用メモリ | 56,132 KB |
最終ジャッジ日時 | 2023-09-17 23:04:57 |
合計ジャッジ時間 | 4,535 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 130 ms
55,712 KB |
testcase_01 | AC | 132 ms
55,896 KB |
testcase_02 | AC | 130 ms
55,788 KB |
testcase_03 | AC | 128 ms
56,132 KB |
testcase_04 | AC | 127 ms
55,848 KB |
ソースコード
import java.util.*; import java.util.regex.*; public class Main { public static void main(String[] args) throws Exception { Scanner koko = new Scanner(System.in); ArrayList<Integer> num= new ArrayList<>(); int a=0; int total=1; while(total==1){ num.add(koko.nextInt()); if(num.get(a)==1){ System.out.println('y'); a++; }else if(num.get(a)==2){ System.out.println('u'); a++; }else if(num.get(a)==3){ System.out.println('k'); a++; }else if(num.get(a)==4){ System.out.println('i'); a++; }else if(num.get(a)==5){ System.out.println('c'); a++; }else if(num.get(a)==6){ System.out.println('o'); a++; }else if(num.get(a)==7){ System.out.println('d'); a++; }else if(num.get(a)==8){ System.out.println('e'); a++; }else if(num.get(a)==9){ System.out.println('r'); a++; }else if(num.get(a)==0){ total=0; } } } }