結果
問題 |
No.5018 Let's Make a Best-seller Book
|
ユーザー |
👑 |
提出日時 | 2023-10-01 13:45:02 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 36 ms / 400 ms |
コード長 | 926 bytes |
コンパイル時間 | 4,155 ms |
コンパイル使用メモリ | 229,852 KB |
実行使用メモリ | 24,492 KB |
スコア | 11,878 |
平均クエリ数 | 52.00 |
最終ジャッジ日時 | 2023-10-01 13:45:14 |
合計ジャッジ時間 | 11,626 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
純コード判定しない問題か言語 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 100 |
ソースコード
#include<bits/stdc++.h> #include<atcoder/all> #define rep(i,n) for(int i=0;i<n;i++) using namespace std; using namespace atcoder; typedef long long ll; typedef vector<int> vi; typedef vector<long long> vl; typedef vector<vector<int>> vvi; typedef vector<vector<long long>> vvl; typedef long double ld; int T, N; long long Money; vector<int> L; vector<int> S, P, R; vector<long double> est; void out(int type){ if(type == 1){ cout << 1; rep(i, N) cout << " " << L[i]; cout << endl; } } int main() { // 最初の入力 cin >> T >> N >> Money; L.resize(N); S.resize(N); P.resize(N); R.resize(N); est.resize(N, 1.0); // インタラクティブ開始 for (int t = 1; t <= T; t++) { if(t >= 1 and t <= 15){ rep(i, N) L[i] = 3 - R[i]; }else{ rep(i, N) L[i] = Money / (500 * N); } out(1); cin >> Money; rep(i, N) cin >> S[i]; rep(i, N) cin >> P[i]; rep(i, N) cin >> R[i]; } return 0; }