結果
問題 |
No.85 TVザッピング(1)
|
ユーザー |
|
提出日時 | 2014-12-04 23:30:05 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 382 bytes |
コンパイル時間 | 3,325 ms |
コンパイル使用メモリ | 75,180 KB |
実行使用メモリ | 41,352 KB |
最終ジャッジ日時 | 2024-06-11 15:22:25 |
合計ジャッジ時間 | 6,827 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 WA * 2 |
ソースコード
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"); }}