結果

問題 No.3029 素因数
ユーザー fal_rndfal_rnd
提出日時 2017-03-31 23:11:53
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 450 bytes
コンパイル時間 4,513 ms
コンパイル使用メモリ 71,880 KB
実行使用メモリ 56,380 KB
最終ジャッジ日時 2023-09-21 11:24:50
合計ジャッジ時間 9,467 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
55,948 KB
testcase_01 AC 115 ms
55,824 KB
testcase_02 AC 114 ms
55,744 KB
testcase_03 AC 113 ms
55,908 KB
testcase_04 AC 114 ms
55,800 KB
testcase_05 AC 114 ms
55,880 KB
testcase_06 AC 115 ms
56,164 KB
testcase_07 AC 115 ms
56,208 KB
testcase_08 AC 117 ms
55,996 KB
testcase_09 AC 118 ms
55,676 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 115 ms
55,640 KB
testcase_13 AC 117 ms
55,924 KB
testcase_14 AC 118 ms
55,892 KB
testcase_15 AC 121 ms
56,008 KB
testcase_16 AC 118 ms
55,532 KB
testcase_17 AC 118 ms
56,104 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 117 ms
55,920 KB
testcase_22 AC 119 ms
55,788 KB
testcase_23 AC 119 ms
55,804 KB
testcase_24 WA -
testcase_25 AC 119 ms
56,108 KB
testcase_26 AC 119 ms
56,012 KB
testcase_27 AC 117 ms
56,044 KB
testcase_28 WA -
testcase_29 AC 116 ms
56,016 KB
testcase_30 AC 114 ms
56,380 KB
testcase_31 AC 116 ms
55,832 KB
testcase_32 WA -
testcase_33 AC 115 ms
55,832 KB
testcase_34 AC 114 ms
55,660 KB
testcase_35 AC 113 ms
55,952 KB
testcase_36 AC 114 ms
56,232 KB
testcase_37 AC 113 ms
55,716 KB
testcase_38 AC 113 ms
55,528 KB
testcase_39 AC 116 ms
56,000 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main{

	static Scanner s=new Scanner(System.in);

	public static void main(String __[]){
		input();
		solve(s.nextInt());
	}

	private static void input(){
	}

	static final int[] v={2,5,17};
	private static void solve(long in){
		if(in==1) {
			System.out.println("even");
			return;
		}
		for(int i:v) {
			if(in%i==0) {
				System.out.println("odd");
				return;
			}
		}
		System.out.println("even");
	}
}
0