結果
| 問題 |
No.481 1から10
|
| コンテスト | |
| ユーザー |
toto
|
| 提出日時 | 2025-03-26 17:46:41 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 166 bytes |
| コンパイル時間 | 335 ms |
| コンパイル使用メモリ | 27,392 KB |
| 実行使用メモリ | 7,328 KB |
| 最終ジャッジ日時 | 2025-03-26 17:46:42 |
| 合計ジャッジ時間 | 1,309 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:6:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | scanf("%d",&val);
| ~~~~~^~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(){
int val = 0;
for(int i = 1;i <= 9;i ++){
scanf("%d",&val);
if(val != i){
printf("%d",i);
return 0;
}
}
printf("10");
}
toto