結果
問題 |
No.355 数当てゲーム(2)
|
ユーザー |
![]() |
提出日時 | 2016-08-20 19:11:49 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 599 bytes |
コンパイル時間 | 707 ms |
コンパイル使用メモリ | 76,832 KB |
実行使用メモリ | 25,964 KB |
平均クエリ数 | 1518.46 |
最終ジャッジ日時 | 2024-07-16 10:53:12 |
合計ジャッジ時間 | 22,101 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 52 |
ソースコード
#include <iostream> #include <fstream> #include <vector> #include <cstring> #include <string> #include <algorithm> #include <iomanip> using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); int a[4] = { 0 }; while(true) { for(int i = 0; i < 4; i++) { int maxj = -1, maxx = -1; for(int j = 0; j < 10; j++) { a[j] = j; for(int k = 0; k < 4; k++) { cout << a[k] << " "; } cout << endl; cout.flush(); int X, Y; cin >> X >> Y; if(X == 4) return 0; if(maxx < X) { maxx = X; maxj = j; } } a[i] = maxj; } } }