結果

問題 No.481 1から10
ユーザー tmsbtmsb
提出日時 2018-10-23 00:26:18
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 251 bytes
コンパイル時間 317 ms
コンパイル使用メモリ 28,672 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-29 20:43:08
合計ジャッジ時間 641 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
5,248 KB
testcase_01 AC 1 ms
5,376 KB
testcase_02 AC 1 ms
5,376 KB
testcase_03 AC 1 ms
5,376 KB
testcase_04 AC 1 ms
5,376 KB
testcase_05 AC 1 ms
5,376 KB
testcase_06 AC 0 ms
5,376 KB
testcase_07 AC 1 ms
5,376 KB
testcase_08 WA -
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

#define N 9

int main(void)
{
  int i, result = 0;
  int arr[N];
  for(i = 1; i < N; i++){
    scanf("%d", &arr[i - 1]);
    if(arr[i - 1] != i && (result < 1)){
      result = i;
    }
  }
  printf("%d\n", result);

  return 0;
}
0