結果

問題 No.481 1から10
コンテスト
ユーザー Maeda
提出日時 2025-03-03 17:25:16
言語 C
(gcc 15.2.0)
コンパイル:
gcc-15 -O2 -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
RE  
実行時間 -
コード長 329 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 53 ms
コンパイル使用メモリ 36,096 KB
実行使用メモリ 5,888 KB
最終ジャッジ日時 2026-07-23 14:58:10
合計ジャッジ時間 1,136 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 2
other WA * 1 RE * 7
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <stdio.h>

void main(){
	int numList[10] = {0};
	int notNum = 0;
	for(int i = 0 ; i < 9 ; i++){
		int inputNum = scanf("%d",&notNum);
		if(inputNum == 2){
			printf("totalの入力ミス\n");
		}
		numList[notNum-1] = 1;
	}
	
	for(int i = 0 ; i < 10 ; i++ ){
		if(numList[i] != 0){
			printf("%d",i+1);
		}
		break;
	}
}
0