結果
問題 | No.481 1から10 |
ユーザー | _mi_lin_ |
提出日時 | 2019-04-10 13:48:59 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 835 bytes |
コンパイル時間 | 3,297 ms |
コンパイル使用メモリ | 101,908 KB |
実行使用メモリ | 22,864 KB |
最終ジャッジ日時 | 2023-09-21 10:17:17 |
合計ジャッジ時間 | 4,835 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 59 ms
20,792 KB |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 60 ms
22,740 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; using System.Text; using System.Threading.Tasks; namespace No481OnetoTen { class Program { static void Main(string[] args) { //値の入力 string[] number1 = Console.ReadLine().Split(' '); int[] number2 = new int[number1.Length]; int ans = 0; for (int i = 0; i < number1.Length; i++) { number2[i] = int.Parse(number1[i]); ans += 1; if (number2[i] != i + 1) { break; } else if (number2[i] == i + 1) { ans = 10; } } //表示 Console.WriteLine(ans); } } }