結果

問題 No.83 最大マッチング
ユーザー OkyokyoOkyokyo
提出日時 2022-03-29 13:33:14
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 412 bytes
コンパイル時間 2,108 ms
コンパイル使用メモリ 74,384 KB
実行使用メモリ 56,272 KB
最終ジャッジ日時 2024-04-25 15:17:50
合計ジャッジ時間 4,484 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 135 ms
54,028 KB
testcase_01 AC 134 ms
54,372 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		//System.out.println("数字を入力してください");
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		if(N >= 6) {
			System.out.println(9);
		}if(3 <= N && N < 6 ){
			System.out.println(7);
		}if(N <=2 ) {
			System.out.println(1);
		}
	}

}
0