結果
問題 |
No.1708 Quality of Contest
|
ユーザー |
![]() |
提出日時 | 2020-09-15 08:25:29 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 790 bytes |
コンパイル時間 | 2,406 ms |
コンパイル使用メモリ | 196,208 KB |
最終ジャッジ日時 | 2025-01-14 14:56:47 |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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); if(g <=0 or g > M){ cout << i + 1 << endl; cout << M << endl; return -1; } 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; }