結果

問題 No.481 1から10
ユーザー uudjjsuudjjs
提出日時 2017-04-24 18:37:57
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 295 bytes
コンパイル時間 110 ms
コンパイル使用メモリ 27,912 KB
実行使用メモリ 4,356 KB
最終ジャッジ日時 2023-10-11 13:17:54
合計ジャッジ時間 733 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include<stdio.h>
int main(void) {

	int array[9];
	int j;
	for (j = 0;j < 9;j++) {
		scanf("%d", &array[j]);
	}
	

		if (array[j + 1] - array[j] == 2)
			printf("%d\n", array[j] + 1);
	else if (array[0] != 1)
		printf("%d\n", 1);

	else  if (array[9] != 10)
		printf("%d\n", 10);
		return 0;
}
0