結果

問題 No.661 ハローキティはりんご3個分
ユーザー youthfuldays072youthfuldays072
提出日時 2018-06-22 17:55:43
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 2,000 ms
コード長 528 bytes
コンパイル時間 2,182 ms
コンパイル使用メモリ 71,208 KB
実行使用メモリ 57,820 KB
最終ジャッジ日時 2023-09-13 08:02:54
合計ジャッジ時間 3,417 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,768 KB
testcase_01 AC 121 ms
55,824 KB
testcase_02 AC 122 ms
55,712 KB
testcase_03 AC 119 ms
57,820 KB
testcase_04 AC 121 ms
55,816 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		Main main=new Main();
		main.run();
	}

	void run() {

		Scanner sc=new Scanner(System.in);

		int N=sc.nextInt();

		for (int i = 0; i < N; i++) {
			int buf=sc.nextInt();

			if(buf%8==0 && buf%10==0) {
				System.out.println("ikisugi");
			}else if(buf%8==0) {
				System.out.println("iki");
			}else if(buf%10==0){
				System.out.println("sugi");
			}else {
				if(buf%3==0) {
					System.out.println(buf/3);
				}
			}
		}


	}
}


0