結果

問題 No.481 1から10
ユーザー laneguelanegue
提出日時 2020-04-02 03:38:56
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 58 ms / 2,000 ms
コード長 382 bytes
コンパイル時間 2,330 ms
コンパイル使用メモリ 64,904 KB
実行使用メモリ 22,684 KB
最終ジャッジ日時 2023-09-09 23:07:52
合計ジャッジ時間 3,007 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
20,732 KB
testcase_01 AC 57 ms
20,740 KB
testcase_02 AC 57 ms
20,792 KB
testcase_03 AC 58 ms
22,564 KB
testcase_04 AC 58 ms
20,596 KB
testcase_05 AC 57 ms
20,860 KB
testcase_06 AC 58 ms
22,684 KB
testcase_07 AC 57 ms
20,748 KB
testcase_08 AC 57 ms
18,508 KB
testcase_09 AC 57 ms
20,688 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
public class Program
{
    static void Main()
    {
        int[] b = Array.ConvertAll(Console.ReadLine().Split(' '), s => int.Parse(s));
        int a = 10;
        for (int i = 0; i < b.Length; i++)
        {
            if (b[i] != i + 1)
            {
                a = i + 1;
                break;
            }
        }
        Console.WriteLine(a);
    }
}
0