結果

問題 No.1945 Go Push!
ユーザー eagleeagle
提出日時 2022-05-27 15:26:20
言語 Java21
(openjdk 21)
結果
AC  
実行時間 842 ms / 2,000 ms
コード長 479 bytes
コンパイル時間 3,195 ms
コンパイル使用メモリ 77,680 KB
実行使用メモリ 72,728 KB
最終ジャッジ日時 2023-10-20 19:42:24
合計ジャッジ時間 14,182 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
57,416 KB
testcase_01 AC 132 ms
57,424 KB
testcase_02 AC 133 ms
57,248 KB
testcase_03 AC 199 ms
59,732 KB
testcase_04 AC 178 ms
57,460 KB
testcase_05 AC 182 ms
57,524 KB
testcase_06 AC 188 ms
56,040 KB
testcase_07 AC 183 ms
57,576 KB
testcase_08 AC 505 ms
61,948 KB
testcase_09 AC 495 ms
61,896 KB
testcase_10 AC 699 ms
66,312 KB
testcase_11 AC 496 ms
61,876 KB
testcase_12 AC 629 ms
62,768 KB
testcase_13 AC 629 ms
64,380 KB
testcase_14 AC 253 ms
60,868 KB
testcase_15 AC 483 ms
61,972 KB
testcase_16 AC 478 ms
61,944 KB
testcase_17 AC 448 ms
61,992 KB
testcase_18 AC 547 ms
61,916 KB
testcase_19 AC 730 ms
66,540 KB
testcase_20 AC 660 ms
65,884 KB
testcase_21 AC 572 ms
61,980 KB
testcase_22 AC 842 ms
72,728 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		//ボタンの列数
		int N = sc.nextInt();
		//各列のボタンの数
		int[] A = new int[N];
		for(int i = 0; i < N; i++) {
			A[i] = sc.nextInt();
		}
		String ans;
		//Nは偶数か
		if(N % 2 == 0) {
			ans = "Second";
		} else {
			ans = "First";
		}
		System.out.println(ans);
	}
}
0