#include using namespace std; int T, N; int Money; int L[19]; int S[19]; int Po[19]; int R[19]; int t=0; int main() { // 最初の入力 cin >> T >> N >> Money; int start_money=2000000; vector>yosoku; while(1){ t++; if(t<=N) { for (int i = 1; i <= N; i++) L[i] = 1000; int nokori=10000; L[t]+=nokori; cout << 1; for (int i = 1; i <= N; i++) cout << " " << L[i]; cout << endl; // (い) 売上部数などを入力する cin >> Money; for (int i = 1; i <= N; i++) cin >> S[i]; for (int i = 1; i <= N; i++) cin >> Po[i]; for (int i = 1; i <= N; i++) cin >> R[i]; yosoku.emplace_back(S[t],t); } sort(yosoku.rbegin(),yosoku.rend()); // インタラクティブ開始 if(t>N) { // (あ) 出版社の行動を出力する //for (int i = 1; i <= N; i++) L[i] = Money / (500 * N); for (int i = 1; i <= N; i++) L[i] = 2000; L[yosoku[0].second]+=10000; cout << 1; for (int i = 1; i <= N; i++) cout << " " << L[i]; cout << endl; // (い) 売上部数などを入力する cin >> Money; if(Money==-1)return 0; for (int i = 1; i <= N; i++) cin >> S[i]; for (int i = 1; i <= N; i++) cin >> Po[i]; for (int i = 1; i <= N; i++) cin >> R[i]; } } return 0; }