結果
| 問題 | No.3499 I Love DAG |
| コンテスト | |
| ユーザー |
aorinngo0606
|
| 提出日時 | 2026-04-19 16:25:33 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 573 ms / 2,000 ms |
| コード長 | 877 bytes |
| 記録 | |
| コンパイル時間 | 6,928 ms |
| コンパイル使用メモリ | 373,940 KB |
| 実行使用メモリ | 30,320 KB |
| 平均クエリ数 | 18782.41 |
| 最終ジャッジ日時 | 2026-04-19 16:26:03 |
| 合計ジャッジ時間 | 19,483 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 40 |
ソースコード
#include <bits/stdc++.h>
#include <atcoder/all>
typedef long long ll;
typedef long double lb;
using namespace std;
using namespace atcoder;
#define all(x) (x).begin(), (x).end()
#define OVERLOAD_REP(_1, _2, _3, name, ...) name
#define REP1(i, n) for (auto i = std::decay_t<decltype(n)>{}; (i) != (n); ++(i))
#define REP2(i, l, r) for (auto i = (l); (i) != (r); ++(i))
#define rep(...) OVERLOAD_REP(__VA_ARGS__, REP2, REP1)(__VA_ARGS__)
template<class T> bool chmin(T& a, const T& b){if(a > b){a = b; return 1;} return 0;}
template<class T> bool chmax(T& a, const T& b){if(a < b){a = b; return 1;} return 0;}
const ll INF = 1000000000000000000; // 10^18
int main(){
ll n,m;
cin >> n >> m;
rep(i,m){
ll a,b;
cin >> a >> b;
if(a < b){
cout << 0 << endl;
}else{
cout << 1 << endl;
}
}
return 0;
}
aorinngo0606