結果
| 問題 |
No.85 TVザッピング(1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-03-10 06:16:23 |
| 言語 | Go1.4 (1.4.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 529 bytes |
| コンパイル時間 | 318 ms |
| コンパイル使用メモリ | 33,176 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-25 00:10:52 |
| 合計ジャッジ時間 | 1,086 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 WA * 5 |
ソースコード
package main
import (
"bufio"
"os"
"strconv"
"fmt"
)
var s = bufio.NewScanner(os.Stdin)
func next() string {
s.Split(bufio.ScanWords)
s.Scan()
return s.Text()
}
func nextInt() int {
i, e := strconv.Atoi(next())
if e != nil {
panic(e)
}
return i
}
func nextLong() int64 {
i, e := strconv.ParseInt(next(), 10, 64)
if e != nil {
panic(e)
}
return i
}
func main() {
N := nextInt()
M := nextInt()
_ = nextInt()
if N*M == 2 || N%2 == 0 || M%2 == 0 {
fmt.Println("YES")
}else {
fmt.Println("NO")
}
}