結果

問題 No.85 TVザッピング(1)
ユーザー リチウムリチウム
提出日時 2014-12-04 23:43:22
言語 Java21
(openjdk 21)
結果
AC  
実行時間 144 ms / 5,000 ms
コード長 428 bytes
コンパイル時間 4,035 ms
コンパイル使用メモリ 74,948 KB
実行使用メモリ 54,396 KB
最終ジャッジ日時 2024-04-15 05:08:05
合計ジャッジ時間 10,155 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 137 ms
54,304 KB
testcase_01 AC 138 ms
54,252 KB
testcase_02 AC 138 ms
54,016 KB
testcase_03 AC 135 ms
54,152 KB
testcase_04 AC 136 ms
53,876 KB
testcase_05 AC 138 ms
53,976 KB
testcase_06 AC 139 ms
53,856 KB
testcase_07 AC 139 ms
54,116 KB
testcase_08 AC 144 ms
54,100 KB
testcase_09 AC 139 ms
53,968 KB
testcase_10 AC 138 ms
53,956 KB
testcase_11 AC 137 ms
54,160 KB
testcase_12 AC 138 ms
54,264 KB
testcase_13 AC 140 ms
54,376 KB
testcase_14 AC 138 ms
54,168 KB
testcase_15 AC 144 ms
54,016 KB
testcase_16 AC 137 ms
54,120 KB
testcase_17 AC 138 ms
54,148 KB
testcase_18 AC 137 ms
54,168 KB
testcase_19 AC 136 ms
54,192 KB
testcase_20 AC 135 ms
54,240 KB
testcase_21 AC 137 ms
54,136 KB
testcase_22 AC 138 ms
54,148 KB
testcase_23 AC 142 ms
54,396 KB
testcase_24 AC 142 ms
54,088 KB
testcase_25 AC 135 ms
53,900 KB
testcase_26 AC 139 ms
54,060 KB
testcase_27 AC 138 ms
54,280 KB
testcase_28 AC 136 ms
54,256 KB
testcase_29 AC 134 ms
53,956 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