結果
| 問題 |
No.1290 Addition and Subtraction Operation
|
| ユーザー |
kyort0n
|
| 提出日時 | 2020-11-13 17:37:26 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 975 bytes |
| コンパイル時間 | 1,510 ms |
| コンパイル使用メモリ | 172,192 KB |
| 実行使用メモリ | 9,728 KB |
| 最終ジャッジ日時 | 2024-07-22 20:15:46 |
| 合計ジャッジ時間 | 8,059 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 55 RE * 30 |
ソースコード
#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;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
ll N, M;
cin >> N >> M;
assert(1 <= N and N <= 10000);
assert(0 <= M and M <= 100000);
for(int i = 0; i < N; i++) {
ll B;
cin >> B;
assert(-1000000000 <= B and B <= 1000000000);
}
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