結果

問題 No.481 1から10
ユーザー phsplsphspls
提出日時 2020-03-28 14:17:41
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 31 ms / 2,000 ms
コード長 336 bytes
コンパイル時間 1,038 ms
コンパイル使用メモリ 112,336 KB
実行使用メモリ 27,584 KB
最終ジャッジ日時 2025-01-02 11:16:31
合計ジャッジ時間 1,886 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Linq;

public class P0481 {
    public static void Main() {
        var a = Console.ReadLine().Trim().Split(' ').Select(int.Parse).ToList();
        a.Add(0);
        Console.WriteLine(Enumerable.Range(1, 10).Zip(a, (i, j) =>  new { left = i, right = j }).First(pair => pair.left != pair.right).left);
    }
}
0