結果

問題 No.1509 Swap!!
ユーザー nrkt
提出日時 2021-05-17 16:34:23
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 692 bytes
コンパイル時間 303 ms
コンパイル使用メモリ 82,140 KB
実行使用メモリ 77,076 KB
最終ジャッジ日時 2024-10-06 16:43:54
合計ジャッジ時間 6,781 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 17 WA * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
 
import sys
import math
from bisect import bisect_right as br
from bisect import bisect_left as bl
sys.setrecursionlimit(2147483647)
from heapq import heappush, heappop,heappushpop
from collections import defaultdict
from itertools import accumulate
from collections import Counter
from collections import deque
from operator import itemgetter
from itertools import permutations
mod = 10**9 + 7
inf = float('inf')
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))

t = I()
for _ in range(t):
    n, a, b = LI()
    if a == 1 or b == 1 or abs(b - a) == 1 or n == 1:
        print("YES")
    else:
        print("NO")
0