結果

問題 No.1509 Swap!!
ユーザー 👑 rin204rin204
提出日時 2022-01-27 00:51:10
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 240 bytes
コンパイル時間 910 ms
コンパイル使用メモリ 87,056 KB
実行使用メモリ 79,204 KB
最終ジャッジ日時 2023-08-25 14:23:54
合計ジャッジ時間 9,356 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
71,404 KB
testcase_01 WA -
testcase_02 AC 218 ms
78,676 KB
testcase_03 AC 231 ms
78,520 KB
testcase_04 AC 225 ms
78,772 KB
testcase_05 AC 229 ms
78,624 KB
testcase_06 AC 241 ms
78,772 KB
testcase_07 AC 267 ms
78,808 KB
testcase_08 AC 262 ms
78,656 KB
testcase_09 AC 265 ms
78,764 KB
testcase_10 AC 251 ms
78,796 KB
testcase_11 AC 200 ms
78,400 KB
testcase_12 AC 202 ms
78,556 KB
testcase_13 AC 238 ms
78,400 KB
testcase_14 AC 210 ms
78,116 KB
testcase_15 AC 195 ms
78,432 KB
testcase_16 AC 198 ms
78,432 KB
testcase_17 AC 187 ms
78,320 KB
testcase_18 AC 200 ms
78,488 KB
testcase_19 AC 196 ms
78,684 KB
testcase_20 AC 199 ms
78,368 KB
testcase_21 AC 229 ms
78,656 KB
testcase_22 AC 225 ms
78,640 KB
testcase_23 AC 220 ms
78,684 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 217 ms
78,652 KB
testcase_28 AC 204 ms
78,420 KB
testcase_29 AC 200 ms
78,332 KB
testcase_30 AC 190 ms
78,120 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import gcd

def solve():
    n, a, b = map(int, input().split())
    if gcd(a, b) != 1:
        print("NO")
    elif a + b  - 1 < n:
        print("YES")
    else:
        print("NO")
    
for _ in range(int(input())):
    solve()
0