結果
| 問題 | No.3499 I Love DAG |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-04-18 20:02:14 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 576 ms / 2,000 ms |
| コード長 | 970 bytes |
| 記録 | |
| コンパイル時間 | 4,543 ms |
| コンパイル使用メモリ | 244,040 KB |
| 実行使用メモリ | 30,320 KB |
| 平均クエリ数 | 18782.41 |
| 最終ジャッジ日時 | 2026-04-18 20:02:41 |
| 合計ジャッジ時間 | 19,568 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 40 |
ソースコード
// @yuuzaa_tkms
#include <bits/stdc++.h>
#include <atcoder/all>
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define Ye cout<<"Yes"<<endl
#define YE cout<<"YES"<<endl
#define No cout<<"No"<<endl
#define NO cout<<"NO"<<endl
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define vec vector
using namespace std;
using ll=long long;
using ull=unsigned long long;
using namespace atcoder;
using mint=modint998244353;
vector<int>dx={0,1,0,-1,-1,-1,1,1};
vector<int>dy={1,0,-1,0,-1,1,-1,1};
int INF=1e9;
ull LINF=1e18;
bool edge(int x,int y,int H,int W){
if(x<0||x>=H||y<0||y>=W)return 0;
else return 1;
}
//実装は丁寧に書こう
//1400復帰しよう!
int main(){
int N,M;
cin>>N>>M;
rep(i,M){
int a,b;
cin>>a>>b;
if(a<b){
cout<<0<<endl;
}else{
cout<<1<<endl;
}
}
}