結果
問題 | No.1714 Tag on Grid |
ユーザー |
|
提出日時 | 2022-01-25 14:08:36 |
言語 | Scala(Beta) (3.6.2) |
結果 |
AC
|
実行時間 | 868 ms / 2,000 ms |
コード長 | 318 bytes |
コンパイル時間 | 11,046 ms |
コンパイル使用メモリ | 256,368 KB |
実行使用メモリ | 63,176 KB |
最終ジャッジ日時 | 2024-12-16 03:35:48 |
合計ジャッジ時間 | 33,499 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 |
ソースコード
import scala.annotation.tailrecimport scala.io.StdIn.*@main def main =val Array(height, width) = readLine().split(' ').map(_.toInt)val Array(ni, nj) = readLine().split(' ').map(_.toInt)val Array(zi, zj) = readLine().split(' ').map(_.toInt)println(if (ni + nj) % 2 != (zi + zj) % 2 then "Yes" else "No")