結果

問題 No.661 ハローキティはりんご3個分
ユーザー asahi32942398asahi32942398
提出日時 2018-04-28 14:43:57
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 532 bytes
コンパイル時間 1,802 ms
コンパイル使用メモリ 71,332 KB
実行使用メモリ 56,472 KB
最終ジャッジ日時 2023-09-10 07:47:52
合計ジャッジ時間 3,068 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
56,052 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 120 ms
56,072 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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(kit%8==0)
            System.out.print("iki");
            if(kit%10==0)
            System.out.print("sugi");
            if(kit%8!=0&&kit%10!=0)
            System.out.print(kit);
            System.out.println();
        }
        
    }
}
0