結果
問題 | No.481 1から10 |
ユーザー | k-a-rgb |
提出日時 | 2023-09-13 13:49:43 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 73 ms / 2,000 ms |
コード長 | 629 bytes |
コンパイル時間 | 5,266 ms |
コンパイル使用メモリ | 103,180 KB |
実行使用メモリ | 23,984 KB |
最終ジャッジ日時 | 2023-09-13 13:49:51 |
合計ジャッジ時間 | 3,582 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 60 ms
21,884 KB |
testcase_01 | AC | 60 ms
21,876 KB |
testcase_02 | AC | 60 ms
21,824 KB |
testcase_03 | AC | 59 ms
21,760 KB |
testcase_04 | AC | 58 ms
21,932 KB |
testcase_05 | AC | 73 ms
21,788 KB |
testcase_06 | AC | 60 ms
23,984 KB |
testcase_07 | AC | 60 ms
21,868 KB |
testcase_08 | AC | 60 ms
21,812 KB |
testcase_09 | AC | 61 ms
23,800 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Collections.Generic; using System.Linq; namespace PracticeAtCoder { class Program { static void Main(string[] args) { //1-10 string sC = Console.ReadLine(); string[] sD = sC.Split(' '); int[] after = sD.Select(s => int.Parse(s)).ToArray(); int flg = 0 ; int intA = 0; int intB=0; int i=0; for(i=0; i<9;i++){ intA = after[i]; intB = i+1; if(intA != intB){ flg = i+1; Console.WriteLine(flg); break; } } if(intA == intB){ flg = i+1; Console.WriteLine(flg); } } } }