結果
問題 | No.661 ハローキティはりんご3個分 |
ユーザー | asahi32942398 |
提出日時 | 2018-04-28 14:45:37 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 121 ms / 2,000 ms |
コード長 | 532 bytes |
コンパイル時間 | 1,967 ms |
コンパイル使用メモリ | 71,672 KB |
実行使用メモリ | 56,332 KB |
最終ジャッジ日時 | 2023-09-10 07:47:56 |
合計ジャッジ時間 | 3,014 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 116 ms
56,288 KB |
testcase_01 | AC | 121 ms
56,332 KB |
testcase_02 | AC | 120 ms
56,072 KB |
testcase_03 | AC | 121 ms
55,868 KB |
testcase_04 | AC | 118 ms
55,988 KB |
ソースコード
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int count = sc.nextInt(); for(int i=0;i<count;i++){ int num = sc.nextInt(); int kit = num/3; if(num%8==0) System.out.print("iki"); if(num%10==0) System.out.print("sugi"); if(num%8!=0&&num%10!=0) System.out.print(kit); System.out.println(); } } }