結果

問題 No.795 Restrictions!!!!!!!!!!!!!!
ユーザー practikovatpractikovat
提出日時 2019-05-22 16:45:34
言語 Java21
(openjdk 21)
結果
AC  
実行時間 55 ms / 2,000 ms
コード長 640 bytes
コンパイル時間 3,220 ms
コンパイル使用メモリ 73,840 KB
実行使用メモリ 53,152 KB
最終ジャッジ日時 2023-10-17 11:18:12
合計ジャッジ時間 5,155 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
53,144 KB
testcase_01 AC 53 ms
53,132 KB
testcase_02 AC 54 ms
53,140 KB
testcase_03 AC 53 ms
53,148 KB
testcase_04 AC 54 ms
53,144 KB
testcase_05 AC 53 ms
53,148 KB
testcase_06 AC 52 ms
53,136 KB
testcase_07 AC 53 ms
53,140 KB
testcase_08 AC 53 ms
52,000 KB
testcase_09 AC 54 ms
53,144 KB
testcase_10 AC 53 ms
53,088 KB
testcase_11 AC 54 ms
53,136 KB
testcase_12 AC 53 ms
53,140 KB
testcase_13 AC 53 ms
53,148 KB
testcase_14 AC 53 ms
51,984 KB
testcase_15 AC 53 ms
53,092 KB
testcase_16 AC 53 ms
53,136 KB
testcase_17 AC 55 ms
53,152 KB
testcase_18 AC 54 ms
53,136 KB
testcase_19 AC 54 ms
53,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

public class Restrictions {
	public static void main(String args[]) {
//		Scanner scan = new Scanner(System.in);

		// 100円の枚数
//		int n = scan.nextInt();
		// 10円の枚数
//		int m = scan.nextInt();

		// 判定条件(本来は前提条件(M=10×N)があるため問答無用でYes)
		// 今回の条件では100円の枚数は最大で1枚差であることを利用する
//		if((n % 2) == 1) {
//			if(m < 10) {
//				System.out.println("No");
//			}
//			m -= 10;
//			if(m % 2 == 0) {
//				System.out.println("Yes");
//			}else {
//				System.out.println("No");
//			}
//		}
		System.out.println("Yes");
		return;
	}
}
0