結果
問題 | No.661 ハローキティはりんご3個分 |
ユーザー | YOSHI |
提出日時 | 2021-03-22 22:12:21 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 598 bytes |
コンパイル時間 | 3,576 ms |
コンパイル使用メモリ | 75,580 KB |
実行使用メモリ | 53,016 KB |
最終ジャッジ日時 | 2024-05-03 11:13:37 |
合計ジャッジ時間 | 4,448 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
ソースコード
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class No00000661_Main { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); public static void main(String[] args) throws IOException { int n = Integer.parseInt(br.readLine()); String r = ""; for(int i = 0; i < n; i++) { int t = Integer.parseInt(br.readLine()); if(t % 80 == 0) r += "ikisugi\r\n"; else if(t % 10 == 0) r += "sugi\r\n"; else if(t % 8 == 0) r += "iki\r\n"; else r += String.valueOf(t/3) + "\r\n"; } System.out.println(r); } }