結果

問題 No.661 ハローキティはりんご3個分
コンテスト
ユーザー yamax3232
提出日時 2018-03-14 10:35:36
言語 Java
(openjdk 27 + ACL)
コンパイル:
javac -J-Duser.language=en -encoding UTF8 -cp /opt/aclib/ac_library.jar _filename_
実行:
java -ea -Xmx700m -Xss256M -DONLINE_JUDGE=true -cp .:/opt/aclib/ac_library.jar _class_
結果
AC  
実行時間 54 ms / 2,000 ms
+ 147µs
コード長 545 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,387 ms
コンパイル使用メモリ 85,944 KB
実行使用メモリ 45,168 KB
最終ジャッジ日時 2026-10-12 08:04:36
合計ジャッジ時間 2,635 ms
ジャッジサーバーID
(参考情報)
judge4_1 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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