結果
問題 | No.481 1から10 |
ユーザー | yuma220284 |
提出日時 | 2019-04-05 11:49:00 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 176 bytes |
コンパイル時間 | 1,296 ms |
コンパイル使用メモリ | 153,860 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2025-01-03 00:30:41 |
合計ジャッジ時間 | 1,892 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 |
ソースコード
#include "bits/stdc++.h" using namespace std; int main() { int x, ans = 10; for (int i = 1; i < 10; i++) { cin >> x; if (ans == 10 && x != i) ans = i; } cout << ans; }