結果

問題 No.624 Santa Claus and The Last Dungeon
ユーザー e869120
提出日時 2017-12-13 20:35:28
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 567 bytes
コンパイル時間 759 ms
コンパイル使用メモリ 65,140 KB
実行使用メモリ 25,592 KB
平均クエリ数 2001.00
最終ジャッジ日時 2024-07-16 14:57:20
合計ジャッジ時間 12,055 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6 WA * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int a[200], Q;
int main() {
	cin >> Q;
	for (int i = 0; i < 200; i++) {
		int maxn = -1, maxid = 0;
		for (int j = 0; j < 10; j++) {
			for (int k = 0; k < 200; k++) {
				if (k % 2 == 0 && k >= 2)cout << " ";
				if (k == i)cout << j; else cout << "0";
			}
			cout << endl;
			int V1, V2, V3; cin >> V1 >> V2 >> V3;
			int P = V2 + V3 * 2;
			if (maxn < P) { maxn = P; maxid = j; }
		}
		a[i] = maxid;
	}
	for (int i = 0; i < 200; i++) {
		if (i % 2 == 0 && i >= 2)cout << " ";
		cout << a[i];
	}
	cout << endl;
	return 0;
}
0