結果

問題 No.661 ハローキティはりんご3個分
ユーザー Mcpu3Mcpu3
提出日時 2018-04-14 16:16:00
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 494 bytes
コンパイル時間 2,074 ms
コンパイル使用メモリ 71,344 KB
実行使用メモリ 56,000 KB
最終ジャッジ日時 2023-09-09 05:12:52
合計ジャッジ時間 3,310 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
55,960 KB
testcase_01 AC 126 ms
56,000 KB
testcase_02 AC 125 ms
55,468 KB
testcase_03 AC 124 ms
56,000 KB
testcase_04 AC 125 ms
53,652 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class no661{
	public static void main(String[] args) {
		Scanner stdIn=new Scanner(System.in);
		int i;
		do {
			i=stdIn.nextInt();
		}while(i<1||5<i);
		int[] n=new int[i];
		for(int j=0;j<i;j++) n[j]=stdIn.nextInt();
		for(int j=0;j<i;j++) {
			if(n[j]%8==0&&n[j]%10==0) System.out.println("ikisugi");
			else if(n[j]%8==0) System.out.println("iki");
			else if(n[j]%10==0) System.out.println("sugi");
			else System.out.println(n[j]/3);
		}
	}
}
0