結果

問題 No.795 Restrictions!!!!!!!!!!!!!!
ユーザー practikovat
提出日時 2019-05-22 16:45:34
言語 Java
(openjdk 23)
結果
AC  
実行時間 53 ms / 2,000 ms
コード長 640 bytes
コンパイル時間 2,985 ms
コンパイル使用メモリ 74,228 KB
実行使用メモリ 50,204 KB
最終ジャッジ日時 2024-09-17 09:35:59
合計ジャッジ時間 4,804 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

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