結果
| 問題 |
No.1290 Addition and Subtraction Operation
|
| ユーザー |
kyort0n
|
| 提出日時 | 2020-11-13 17:40:12 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 1,012 bytes |
| コンパイル時間 | 1,700 ms |
| コンパイル使用メモリ | 173,600 KB |
| 実行使用メモリ | 9,728 KB |
| 最終ジャッジ日時 | 2024-07-22 20:15:37 |
| 合計ジャッジ時間 | 6,088 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 85 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> l_l;
typedef pair<int, int> i_i;
template<class T>
inline bool chmax(T &a, T b) {
if(a < b) {
a = b;
return true;
}
return false;
}
template<class T>
inline bool chmin(T &a, T b) {
if(a > b) {
a = b;
return true;
}
return false;
}
const long long INF = 1e18;
//const ll mod = 1000000007;
ll MAX_N = 1e5;
ll MAX_M = 1e5;
ll MAX_B = 1e9;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
ll N, M;
cin >> N >> M;
assert(1 <= N and N <= MAX_N);
assert(0 <= M and M <= MAX_M);
for(int i = 0; i < N; i++) {
ll B;
cin >> B;
assert(-MAX_B <= B and B <= MAX_B);
}
set<l_l> st;
for(int i = 0; i < M; i++) {
ll l, r;
cin >> l >> r;
assert(1 <= l and l <= r and r <= N);
l_l tmp = {l, r};
assert(st.find(tmp) == st.end());
st.insert(tmp);
}
return 0;
}
kyort0n