結果

問題 No.795 Restrictions!!!!!!!!!!!!!!
ユーザー 37zigen37zigen
提出日時 2019-03-15 23:02:43
言語 Java19
(openjdk 21)
結果
AC  
実行時間 369 ms / 2,000 ms
コード長 561 bytes
コンパイル時間 2,093 ms
コンパイル使用メモリ 72,308 KB
実行使用メモリ 59,256 KB
最終ジャッジ日時 2023-09-14 14:06:41
合計ジャッジ時間 10,607 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 355 ms
57,448 KB
testcase_01 AC 364 ms
56,892 KB
testcase_02 AC 351 ms
58,676 KB
testcase_03 AC 353 ms
58,988 KB
testcase_04 AC 353 ms
59,096 KB
testcase_05 AC 350 ms
56,744 KB
testcase_06 AC 341 ms
59,100 KB
testcase_07 AC 349 ms
56,744 KB
testcase_08 AC 359 ms
58,652 KB
testcase_09 AC 356 ms
58,740 KB
testcase_10 AC 339 ms
56,876 KB
testcase_11 AC 349 ms
56,952 KB
testcase_12 AC 338 ms
56,676 KB
testcase_13 AC 334 ms
58,908 KB
testcase_14 AC 362 ms
56,944 KB
testcase_15 AC 368 ms
59,184 KB
testcase_16 AC 353 ms
58,900 KB
testcase_17 AC 369 ms
59,256 KB
testcase_18 AC 357 ms
57,072 KB
testcase_19 AC 346 ms
58,672 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.math.*;
import java.util.*;
import java.io.*;

public class Main{
    public static void main(String[] args){
	new Main().run();
    }

    void run(){
	Scanner sc=new Scanner(System.in);
	BigInteger a=new BigInteger(sc.next());
	BigInteger b=new BigInteger(sc.next());
	a=a.remainder(new BigInteger("2"));
	if(a.equals(new BigInteger("1"))){
	    b.subtract(new BigInteger("10"));
	}
	if(b.signum()==-1||b.remainder(new BigInteger("2")).equals(new BigInteger("1"))){
	    System.out.println("No");
	}else{
	    System.out.println("Yes");
	}
    }
}
0