結果
| 問題 | No.355 数当てゲーム(2) | 
| コンテスト | |
| ユーザー |  femto | 
| 提出日時 | 2016-08-20 19:12:10 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                TLE
                                 
                            (最新) 
                                AC
                                 
                            (最初) | 
| 実行時間 | - | 
| コード長 | 599 bytes | 
| コンパイル時間 | 906 ms | 
| コンパイル使用メモリ | 76,524 KB | 
| 実行使用メモリ | 40,412 KB | 
| 最終ジャッジ日時 | 2024-07-17 00:19:59 | 
| 合計ジャッジ時間 | 7,436 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | TLE * 1 -- * 51 | 
ソースコード
#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[i] = 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;
		}
	}
}
            
            
            
        