結果
| 問題 |
No.85 TVザッピング(1)
|
| コンテスト | |
| ユーザー |
hhgfhn1
|
| 提出日時 | 2018-12-19 01:16:54 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 366 bytes |
| コンパイル時間 | 2,042 ms |
| コンパイル使用メモリ | 74,344 KB |
| 実行使用メモリ | 54,592 KB |
| 最終ジャッジ日時 | 2024-09-25 07:51:52 |
| 合計ジャッジ時間 | 7,407 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 WA * 8 |
ソースコード
import java.util.Scanner;
public class Main {
@SuppressWarnings("resource")
public static void main(String args[]) {
Scanner scanner = new Scanner(System.in);
int n=scanner.nextInt();
int m=scanner.nextInt();
int c=scanner.nextInt();
if(n==1||m==1) {
System.out.println("YES");
}else {
System.out.println((n%2==1&&m%2==1)?"NO":"YES");
}
}
}
hhgfhn1