結果

問題 No.661 ハローキティはりんご3個分
ユーザー youthfuldays072youthfuldays072
提出日時 2018-06-22 17:52:25
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 516 bytes
コンパイル時間 4,229 ms
コンパイル使用メモリ 71,968 KB
実行使用メモリ 56,068 KB
最終ジャッジ日時 2023-09-13 08:02:15
合計ジャッジ時間 4,754 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,620 KB
testcase_01 WA -
testcase_02 AC 124 ms
55,756 KB
testcase_03 AC 122 ms
55,536 KB
testcase_04 AC 123 ms
55,772 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%80==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