結果
| 問題 |
No.481 1から10
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-03-08 15:26:02 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 248 bytes |
| コンパイル時間 | 183 ms |
| コンパイル使用メモリ | 20,992 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-23 19:00:42 |
| 合計ジャッジ時間 | 823 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | AC * 1 WA * 7 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:8:17: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
8 | scanf("%d",&s[i]);
| ^~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>
int main(void){
int i,A[9]={1,2,3,4,5,6,7,8,9},s[9];
for(i=0;i<9;i++){
scanf("%d",&s[i]);
}
for(i=0;i<9;i++){
if(s[i]!=A[i]){
printf("%d",A[i]);
break;
}else if(s[9]==A[9]) printf("10");
}
return 0;
}