結果

問題 No.661 ハローキティはりんご3個分
ユーザー shinwisteriashinwisteria
提出日時 2019-01-21 18:27:10
言語 Java19
(openjdk 21)
結果
AC  
実行時間 109 ms / 2,000 ms
コード長 501 bytes
コンパイル時間 2,741 ms
コンパイル使用メモリ 72,324 KB
実行使用メモリ 55,980 KB
最終ジャッジ日時 2023-10-13 17:18:41
合計ジャッジ時間 3,891 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 106 ms
55,752 KB
testcase_01 AC 108 ms
55,896 KB
testcase_02 AC 108 ms
55,752 KB
testcase_03 AC 109 ms
55,980 KB
testcase_04 AC 107 ms
54,232 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;;
public class No661 {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int i = s.nextInt();
		int[] N = new int[i];
		for(int k = 0;k < i;k++){
			N[k] = s.nextInt();
		}
		s.close();
		for(int k : N){
			if(k % 8 == 0 && k % 10 == 0){
				System.out.println("ikisugi");
			}else if(k % 8 == 0){
				System.out.println("iki");
			}else if(k % 10 == 0){
				System.out.println("sugi");
			}else{
				System.out.println(k / 3);
			}
		}
	}

}
0