結果

問題 No.85 TVザッピング(1)
ユーザー リチウムリチウム
提出日時 2014-12-04 23:30:05
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 382 bytes
コンパイル時間 3,734 ms
コンパイル使用メモリ 72,644 KB
実行使用メモリ 56,240 KB
最終ジャッジ日時 2023-09-02 08:28:33
合計ジャッジ時間 8,871 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
55,744 KB
testcase_01 AC 127 ms
55,652 KB
testcase_02 AC 128 ms
55,776 KB
testcase_03 AC 127 ms
55,876 KB
testcase_04 AC 128 ms
55,404 KB
testcase_05 AC 128 ms
56,044 KB
testcase_06 AC 133 ms
55,700 KB
testcase_07 AC 126 ms
55,732 KB
testcase_08 AC 127 ms
55,412 KB
testcase_09 WA -
testcase_10 AC 128 ms
55,848 KB
testcase_11 AC 127 ms
55,956 KB
testcase_12 AC 128 ms
55,728 KB
testcase_13 AC 126 ms
55,664 KB
testcase_14 WA -
testcase_15 AC 128 ms
55,584 KB
testcase_16 AC 127 ms
55,772 KB
testcase_17 AC 127 ms
55,644 KB
testcase_18 AC 129 ms
55,784 KB
testcase_19 AC 123 ms
55,928 KB
testcase_20 AC 126 ms
55,780 KB
testcase_21 AC 128 ms
55,472 KB
testcase_22 AC 128 ms
55,484 KB
testcase_23 AC 127 ms
55,980 KB
testcase_24 AC 128 ms
55,736 KB
testcase_25 AC 126 ms
55,904 KB
testcase_26 AC 128 ms
55,428 KB
testcase_27 AC 128 ms
55,960 KB
testcase_28 AC 127 ms
56,240 KB
testcase_29 AC 129 ms
55,484 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==1 || m==1)System.out.println("NO");
	  else if((n*m)%2==1)System.out.println("NO");
	  else System.out.println("YES");
	  
  }}
0