結果

問題 No.83 最大マッチング
ユーザー OkyokyoOkyokyo
提出日時 2022-03-29 13:31:37
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 428 bytes
コンパイル時間 3,172 ms
コンパイル使用メモリ 74,168 KB
実行使用メモリ 55,172 KB
最終ジャッジ日時 2024-04-25 15:17:03
合計ジャッジ時間 5,562 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
54,120 KB
testcase_01 AC 121 ms
54,412 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.Scanner;

public class saidaimatching {

	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