結果
問題 |
No.1708 Quality of Contest
|
ユーザー |
![]() |
提出日時 | 2020-09-15 00:01:27 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 686 bytes |
コンパイル時間 | 1,549 ms |
コンパイル使用メモリ | 168,788 KB |
実行使用メモリ | 7,296 KB |
最終ジャッジ日時 | 2024-09-17 16:50:39 |
合計ジャッジ時間 | 6,224 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 23 |
ソースコード
#include <bits/stdc++.h> #define rep(i,n) for(int i=0; i<(int)(n); i++) using namespace std; using LL = long long; const int Max_N = 2e5; const int Max_M = 2e5; const LL Max_X = 1e9; const LL Max_V = 1e9; const int Max_K = 2e5; int main(){ int N, M; LL X; cin >> N >> M >> X; assert(1 <= N and N <= Max_N); assert(1 <= M and M <= Max_M); assert(0 <= X and X <= Max_X); vector<LL> V(N), G(N); rep(i,N){ LL v, g; cin >> v >> g; assert(0 <= v and v <= Max_V); assert(1 <= g and g <= M); V[i] = v, G[i] = g; } int K; cin >> K; assert(1 <= K and K <= Max_K); vector<int> p(K); rep(i,K){ int P; cin >> P; assert(0 <= P and P <= N); p[i] = P; } return 0; }