結果
| 問題 |
No.208 王将
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-07-31 11:44:24 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 577 bytes |
| コンパイル時間 | 7,382 ms |
| コンパイル使用メモリ | 166,904 KB |
| 実行使用メモリ | 186,616 KB |
| 最終ジャッジ日時 | 2024-10-10 05:14:10 |
| 合計ジャッジ時間 | 9,852 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 21 WA * 2 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (93 ms)。 MSBuild のバージョン 17.9.6+a4ecab324 (.NET) main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
using System;
using System.Collections.Generic;
using System.Linq;
namespace yukicoder
{
public class Program
{
public static void Main()
{
var a = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
var b = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
if (a[0] == a[1]&& b[0] == b[1])
{
Console.WriteLine(a[0] + 1);
}
else
{
Console.WriteLine(Math.Max(a[0], a[1]));
}
}
}
}