結果
| 問題 | No.3499 I Love DAG |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-04-17 20:38:30 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 750 ms / 2,000 ms |
| コード長 | 772 bytes |
| 記録 | |
| コンパイル時間 | 350 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 102,432 KB |
| 平均クエリ数 | 18782.41 |
| 最終ジャッジ日時 | 2026-04-17 20:39:01 |
| 合計ジャッジ時間 | 21,229 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 40 |
ソースコード
# snippet: interactive_
# Last Modified: 2026-02-13
from collections import deque, defaultdict
from itertools import permutations, product
from bisect import bisect_left, bisect_right
from heapq import heappush, heappop
from random import randint, shuffle
def II(): return int(input())
def LI(): return list(map(int,input().split()))
def LI_1(): return [int(x) - 1 for x in input().split()]
def SI(): return input()
def LS(): return list(input().split())
mod = 998244353
inf = 1<<61
EPS = 10 ** -6
def solve():
N, M = LI()
for i in range(M):
a, b = LI()
if a > b:
print(0, flush=True)
else:
print(1, flush=True)
return
if __name__ == "__main__":
T = 1
# T = II()
for _ in range(T):
solve()