結果

問題 No.661 ハローキティはりんご3個分
ユーザー sekiya9311sekiya9311
提出日時 2018-03-09 22:25:27
言語 Java19
(openjdk 21)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 1,049 bytes
コンパイル時間 3,592 ms
コンパイル使用メモリ 73,372 KB
実行使用メモリ 56,012 KB
最終ジャッジ日時 2023-07-31 11:45:21
合計ジャッジ時間 3,429 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
55,668 KB
testcase_01 AC 127 ms
56,012 KB
testcase_02 AC 127 ms
56,008 KB
testcase_03 AC 125 ms
55,800 KB
testcase_04 AC 121 ms
54,248 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        No661 solver = new No661();
        solver.solve(1, in, out);
        out.close();
    }

    static class No661 {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int N = in.nextInt();
            for (int i = 0; i < N; i++) {
                int n = in.nextInt();
                String ret = "";
                if (n % 8 == 0) ret += "iki";
                if (n % 10 == 0) ret += "sugi";
                if (ret.length() == 0) ret = Integer.toString(n / 3);
                out.println(ret);
            }
        }

    }
}

0