結果

問題 No.1714 Tag on Grid
ユーザー yudedakoyudedako
提出日時 2022-01-25 14:08:36
言語 Scala(Beta)
(3.4.0)
結果
AC  
実行時間 920 ms / 2,000 ms
コード長 318 bytes
コンパイル時間 12,025 ms
コンパイル使用メモリ 258,304 KB
実行使用メモリ 62,508 KB
最終ジャッジ日時 2023-08-22 07:56:18
合計ジャッジ時間 37,100 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 892 ms
62,112 KB
testcase_01 AC 898 ms
61,992 KB
testcase_02 AC 899 ms
61,876 KB
testcase_03 AC 899 ms
62,060 KB
testcase_04 AC 920 ms
62,032 KB
testcase_05 AC 896 ms
62,088 KB
testcase_06 AC 901 ms
62,156 KB
testcase_07 AC 903 ms
61,780 KB
testcase_08 AC 897 ms
62,024 KB
testcase_09 AC 889 ms
62,108 KB
testcase_10 AC 892 ms
61,800 KB
testcase_11 AC 906 ms
62,356 KB
testcase_12 AC 903 ms
62,408 KB
testcase_13 AC 891 ms
62,268 KB
testcase_14 AC 894 ms
61,676 KB
testcase_15 AC 892 ms
62,112 KB
testcase_16 AC 909 ms
61,812 KB
testcase_17 AC 899 ms
62,508 KB
testcase_18 AC 903 ms
62,204 KB
testcase_19 AC 909 ms
61,756 KB
testcase_20 AC 893 ms
61,868 KB
testcase_21 AC 896 ms
62,028 KB
testcase_22 AC 896 ms
62,052 KB
testcase_23 AC 900 ms
61,856 KB
testcase_24 AC 890 ms
62,272 KB
testcase_25 AC 894 ms
61,672 KB
testcase_26 AC 892 ms
61,936 KB
testcase_27 AC 895 ms
61,724 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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