結果
| 問題 |
No.481 1から10
|
| コンテスト | |
| ユーザー |
_mi_lin_
|
| 提出日時 | 2019-04-10 13:48:59 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 835 bytes |
| コンパイル時間 | 879 ms |
| コンパイル使用メモリ | 109,600 KB |
| 実行使用メモリ | 26,124 KB |
| 最終ジャッジ日時 | 2024-07-07 04:21:26 |
| 合計ジャッジ時間 | 1,444 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | AC * 2 WA * 6 |
コンパイルメッセージ
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);
}
}
}
_mi_lin_