結果

問題 No.481 1から10
ユーザー oreoreoresanoreoreoresan
提出日時 2018-02-14 13:56:50
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 719 bytes
コンパイル時間 1,361 ms
コンパイル使用メモリ 63,184 KB
実行使用メモリ 22,928 KB
最終ジャッジ日時 2023-08-23 11:28:51
合計ジャッジ時間 2,004 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
20,756 KB
testcase_01 AC 56 ms
20,620 KB
testcase_02 AC 57 ms
20,896 KB
testcase_03 AC 56 ms
20,676 KB
testcase_04 AC 56 ms
20,696 KB
testcase_05 AC 56 ms
20,704 KB
testcase_06 AC 55 ms
22,728 KB
testcase_07 AC 55 ms
20,728 KB
testcase_08 AC 55 ms
20,864 KB
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {

            string[] str = Console.ReadLine().Split(' ');//2つ以上のスペース区切り入力の取得

            string[] ncen = new string[11];
            for (int i = 0; i < 9; i++)
            {
                ncen[i] = str[i];
            }
            for(int i = 0; i < 9;i++)
            {
                if((i+1) != int.Parse(ncen[i]))
                {
                    Console.WriteLine(i+1);
                    break;
                }
            }
        }
    }
}
0