結果

問題 No.3499 I Love DAG
コンテスト
ユーザー kinugoshi8928
提出日時 2026-04-18 09:01:19
言語 C++23(gnu拡張)
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=gnu++23 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 332 ms / 2,000 ms
コード長 2,400 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 5,292 ms
コンパイル使用メモリ 374,848 KB
実行使用メモリ 30,320 KB
平均クエリ数 18782.41
最終ジャッジ日時 2026-04-18 09:01:46
合計ジャッジ時間 21,542 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 40
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#line 1 "/home/kinugoshi/Kyopro/kinugoshi_Library/kinugoshi/overwrite/overwrite_io.hpp"
#include <atcoder/modint>
#include <iostream>
#include <utility>
#include <vector>
namespace std {
template <int m, std::enable_if_t<(1 <= m)> * = nullptr>
ostream &operator<<(ostream &os, const atcoder::static_modint<m> &v) {
    os << v.val();
    return os;
}
template <typename T, typename U>
ostream &operator<<(ostream &os, const pair<T, U> &v) {
    os << v.first << " " << v.second;
    return os;
}
template <typename T, typename U>
istream &operator>>(istream &is, pair<T, U> &v) {
    is >> v.first >> v.second;
    return is;
}
template <typename T> ostream &operator<<(ostream &os, const vector<T> &v) {
    for(int i = 0; i < (int)v.size(); i++) {
        os << v[i] << (i != (int)v.size() - 1 ? " " : "");
    }
    return os;
}
template <typename T> istream &operator>>(istream &is, vector<T> &v) {
    for(T &in : v)
        is >> in;
    return is;
}
template <typename T>
ostream &operator<<(ostream &os, const vector<vector<T>> &v) {
    for(int i = 0; i < (int)v.size(); i++) {
        for(int j = 0; j < (int)v[i].size(); j++) {
            os << v[i][j] << (j != (int)v.size() - 1 ? " " : "\n");
        }
    }
    return os;
}
} // namespace std
#line 2 "/home/kinugoshi/Kyopro/kinugoshi_Library/kinugoshi/overwrite/template.hpp"
#include <atcoder/all>
#include <bits/stdc++.h>
using namespace std;
using namespace atcoder;
using ll = long long;
using ld = long double;
#define all(v) v.begin(), v.end()
#define rall(v) v.rbegin(), v.rend()
#define rep(a, b) for(long long a = 0; a < (long long)(b); a++)
#define repi(a, b) for(int a = 0; a < (int)(b); a++)
#define repr(a, b) for(long long a = (long long)(b)-1; a >= 0; a--)
#define repo(a, b) for(int a = (int)(b)-1; a >= 0; a--)
template <typename T> inline void chmin(T &a, T b) { a = min(a, b); }
template <typename T> inline void chmax(T &a, T b) { a = max(a, b); }
inline void YesNo(bool ret) {
    if(ret)
        cout << "Yes" << endl;
    else
        cout << "No" << endl;
}
#line 2 "main.cpp"
using mint = modint998244353;
// using namespace kinugoshi;
// using namespace boost::multiprecision;
int op(int a, int b) { return min(a, b); }
int e() { return 2147483647; }

int main() {
    int N, M;
    cin >> N >> M;
    while(M--) {
        int A, B;
        cin >> A >> B;
        cout << ((A < B) ? 0 : 1) << endl;
    }
}
0