結果
| 問題 |
No.1714 Tag on Grid
|
| コンテスト | |
| ユーザー |
bluemegane
|
| 提出日時 | 2021-10-23 07:21:49 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 25 ms / 2,000 ms |
| コード長 | 594 bytes |
| コンパイル時間 | 750 ms |
| コンパイル使用メモリ | 110,368 KB |
| 実行使用メモリ | 26,192 KB |
| 最終ジャッジ日時 | 2024-09-24 19:55:53 |
| 合計ジャッジ時間 | 2,521 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using static System.Math;
using System;
public class Hello
{
static void Main()
{
string[] line = Console.ReadLine().Trim().Split(' ');
var h = long.Parse(line[0]);
var w = long.Parse(line[1]);
line = Console.ReadLine().Trim().Split(' ');
var ni = long.Parse(line[0]);
var nj = long.Parse(line[1]);
line = Console.ReadLine().Trim().Split(' ');
var zi = long.Parse(line[0]);
var zj = long.Parse(line[1]);
var mh = Abs(zi - ni) + Abs(zj - nj);
Console.WriteLine(mh % 2 == 0 ? "No" : "Yes");
}
}
bluemegane