結果

問題 No.661 ハローキティはりんご3個分
ユーザー yamax3232yamax3232
提出日時 2018-03-14 10:35:36
言語 Java21
(openjdk 21)
結果
AC  
実行時間 123 ms / 2,000 ms
コード長 545 bytes
コンパイル時間 2,148 ms
コンパイル使用メモリ 72,148 KB
実行使用メモリ 56,080 KB
最終ジャッジ日時 2023-08-17 13:01:15
合計ジャッジ時間 3,449 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,784 KB
testcase_01 AC 122 ms
55,704 KB
testcase_02 AC 122 ms
55,844 KB
testcase_03 AC 123 ms
56,080 KB
testcase_04 AC 123 ms
55,628 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner kb=new Scanner(System.in);
		int i=kb.nextInt();
		int[] a=new int[i];
		for(int j=0;j<a.length;j++){
			a[j]=kb.nextInt();
		}
		for(int j=0;j<a.length;j++){
			if(a[j]%40==0){
				System.out.println("ikisugi");
			}
			else if(a[j]%10==0){
				System.out.println("sugi");
			}else if(a[j]%8==0){
				System.out.println("iki");
			}else{
				System.out.println(a[j]/3);

			}
		}


	}

}
0