結果
問題 |
No.481 1から10
|
ユーザー |
![]() |
提出日時 | 2019-04-13 14:13:53 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 297 bytes |
コンパイル時間 | 392 ms |
コンパイル使用メモリ | 54,704 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-15 11:05:10 |
合計ジャッジ時間 | 938 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | AC * 1 WA * 7 |
ソースコード
#include <iostream> using namespace std; int main() { int i, j, ans; int a[9]; for (i = 0; i < 9; i++) { cin >> a[i]; } for (j = 1; j <= 10; j++) { if (a[j] != j) { ans = i; break; } } cout << ans << endl; return 0; }