結果

問題 No.3352 中点判定
コンテスト
ユーザー tobisatis
提出日時 2025-11-14 21:22:53
言語 C#
(.NET 8.0.404)
結果
AC  
実行時間 56 ms / 2,000 ms
コード長 444 bytes
コンパイル時間 7,837 ms
コンパイル使用メモリ 168,408 KB
実行使用メモリ 188,572 KB
最終ジャッジ日時 2025-11-14 21:23:05
合計ジャッジ時間 9,250 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 21
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (149 ミリ秒)。
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

#nullable enable

#region
var (_input, _iter) = (Array.Empty<string>(), 0);
T I<T>() where T : IParsable<T>
{
    while (_iter >= _input.Length) (_input, _iter) = (Console.ReadLine()!.Split(' '), 0);
    return T.Parse(_input[_iter++], null);
}
#endregion

static T[] Range<T>(int n, Func<T> F) => Enumerable.Range(0, n).Select(_ => F()).ToArray();

var nz = Range(3, I<long>);
Console.WriteLine(nz[1] + nz[1] == nz[0] + nz[2] ? "Yes" : "No");
0