結果
問題 | No.355 数当てゲーム(2) |
ユーザー |
![]() |
提出日時 | 2016-04-22 17:10:39 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 428 bytes |
コンパイル時間 | 1,285 ms |
コンパイル使用メモリ | 157,560 KB |
実行使用メモリ | 25,708 KB |
平均クエリ数 | 40.00 |
最終ジャッジ日時 | 2024-07-16 09:58:46 |
合計ジャッジ時間 | 12,264 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 52 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ int a[4]{}; for (int i = 0; i < 4; i++){ int mx = -1, r = 0; for (int j = 0; j <= 9; j++){ a[i] = j; for (int k = 0; k < 4; k++){ cout << a[k] << "\n "[k < 3]; } cout.flush(); int x, y; cin >> x >> y; if (x == 4) return 0; if (mx < x){ mx = x; r = j; } } a[i] = r; } }