結果
| 問題 | No.1412 Super Ryuo |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-12-08 20:54:36 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 636 bytes |
| 記録 | |
| コンパイル時間 | 15,810 ms |
| コンパイル使用メモリ | 171,976 KB |
| 実行使用メモリ | 195,528 KB |
| 最終ジャッジ日時 | 2025-12-08 20:54:58 |
| 合計ジャッジ時間 | 12,125 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 14 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (107 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
using System;
class Program
{
static void Main()
{
long x1 = long.Parse(Console.ReadLine());
long y1 = long.Parse(Console.ReadLine());
long x2 = long.Parse(Console.ReadLine());
long y2 = long.Parse(Console.ReadLine());
long dx = Math.Abs(x2 - x1);
long dy = Math.Abs(y2 - y1);
if (dx + dy <= 2 || dx == 0 || dy == 0)
{
Console.WriteLine(1);
}
else if ((dx + dy <= 3) || (dx == dy) || (dx + dy) % 2 == 0)
{
Console.WriteLine(2);
}
else
{
Console.WriteLine(3);
}
}
}