結果

問題 No.85 TVザッピング(1)
ユーザー リチウムリチウム
提出日時 2014-12-04 23:43:22
言語 Java19
(openjdk 21)
結果
AC  
実行時間 127 ms / 5,000 ms
コード長 428 bytes
コンパイル時間 3,838 ms
コンパイル使用メモリ 72,544 KB
実行使用メモリ 56,208 KB
最終ジャッジ日時 2023-07-27 18:05:44
合計ジャッジ時間 8,988 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
55,564 KB
testcase_01 AC 125 ms
56,168 KB
testcase_02 AC 126 ms
53,736 KB
testcase_03 AC 126 ms
55,768 KB
testcase_04 AC 126 ms
56,076 KB
testcase_05 AC 126 ms
56,108 KB
testcase_06 AC 127 ms
56,208 KB
testcase_07 AC 126 ms
55,924 KB
testcase_08 AC 126 ms
56,040 KB
testcase_09 AC 126 ms
55,904 KB
testcase_10 AC 127 ms
55,756 KB
testcase_11 AC 125 ms
55,740 KB
testcase_12 AC 125 ms
55,872 KB
testcase_13 AC 126 ms
55,760 KB
testcase_14 AC 125 ms
56,092 KB
testcase_15 AC 125 ms
56,176 KB
testcase_16 AC 125 ms
55,708 KB
testcase_17 AC 125 ms
55,888 KB
testcase_18 AC 126 ms
55,828 KB
testcase_19 AC 125 ms
55,928 KB
testcase_20 AC 123 ms
55,808 KB
testcase_21 AC 125 ms
56,172 KB
testcase_22 AC 124 ms
55,948 KB
testcase_23 AC 125 ms
55,716 KB
testcase_24 AC 124 ms
55,904 KB
testcase_25 AC 123 ms
55,812 KB
testcase_26 AC 124 ms
55,828 KB
testcase_27 AC 123 ms
55,612 KB
testcase_28 AC 126 ms
55,768 KB
testcase_29 AC 125 ms
55,792 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import static java.lang.Math.*;
 
public class ppp {
	
	
		
  public static void main(String[] args) {
	  Scanner sc=new Scanner(System.in);
	  int n=sc.nextInt();
	  int m=sc.nextInt();
	  int c=sc.nextInt();
	  if(n*m==2)System.out.println("YES");
	  else if(n==1 || m==1)System.out.println("NO");
	  else if((n*m)%2==1)System.out.println("NO");
	  else System.out.println("YES");
	  
  }}
0