結果
| 問題 | No.481 1から10 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-09-13 13:40:48 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 542 bytes |
| 記録 | |
| コンパイル時間 | 4,331 ms |
| コンパイル使用メモリ | 114,336 KB |
| 実行使用メモリ | 27,184 KB |
| 最終ジャッジ日時 | 2024-06-30 22:29:52 |
| 合計ジャッジ時間 | 5,133 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 7 WA * 1 |
コンパイルメッセージ
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;
for(int i=0; i<9;i++){
intA = after[i];
intB = i+1;
if(intA != intB){
flg = i+1;
Console.WriteLine(flg);
break;
}
}
}
}
}