結果
問題 |
No.481 1から10
|
ユーザー |
|
提出日時 | 2017-08-30 14:23:16 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 375 bytes |
コンパイル時間 | 1,286 ms |
コンパイル使用メモリ | 158,648 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-06 14:31:11 |
合計ジャッジ時間 | 1,802 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define FOR(i,n) for(int (i)=0;(i)<(int)(n);++(i)) #define FORR(i,l,n) for(int (i)=l;(i)<(int)(n);++(i)) void solve() { FOR(i, 9) { int n; cin >> n; if (n != i + 1){ cout << i + 1 << endl; break; } if (i == 9-1) { cout << 10 << endl; } } } int main() { ios::sync_with_stdio(false); solve(); return 0; }