結果

問題 No.1893 Cycle
ユーザー ccc
提出日時 2022-07-26 13:44:37
言語 C#
(.NET 8.0.404)
結果
WA  
実行時間 -
コード長 284 bytes
コンパイル時間 14,211 ms
コンパイル使用メモリ 167,468 KB
実行使用メモリ 186,540 KB
最終ジャッジ日時 2024-07-16 06:11:20
合計ジャッジ時間 16,367 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 6 WA * 15
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (90 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/

ソースコード

diff #

using System;
using System.Linq;

class Program
{
    static void Main()
    {
        var inp = Console.ReadLine().Split().Select(int.Parse).ToArray();
        Array.Sort(inp);
        var spn = inp[1] - inp[0];
        var ans = inp[0] - spn;
        Console.WriteLine(ans);
    }
}
0