結果

問題 No.1714 Tag on Grid
コンテスト
ユーザー yudedako
提出日時 2022-01-25 14:08:36
言語 Scala(Beta)
(3.8.2)
コンパイル:
scalac _filename_
実行:
/usr/bin/scala_run _class_
結果
AC  
実行時間 403 ms / 2,000 ms
コード長 318 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 9,595 ms
コンパイル使用メモリ 285,664 KB
実行使用メモリ 58,488 KB
最終ジャッジ日時 2026-03-09 19:28:07
合計ジャッジ時間 22,267 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import scala.annotation.tailrec
import 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")
0