結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
71,316 KB
testcase_01 WA -
testcase_02 AC 223 ms
78,728 KB
testcase_03 AC 212 ms
78,560 KB
testcase_04 AC 226 ms
78,728 KB
testcase_05 AC 243 ms
78,592 KB
testcase_06 AC 227 ms
78,772 KB
testcase_07 AC 224 ms
78,612 KB
testcase_08 AC 218 ms
78,660 KB
testcase_09 AC 220 ms
78,848 KB
testcase_10 AC 221 ms
78,768 KB
testcase_11 AC 195 ms
78,104 KB
testcase_12 AC 231 ms
78,376 KB
testcase_13 AC 232 ms
78,420 KB
testcase_14 AC 207 ms
78,304 KB
testcase_15 AC 192 ms
78,100 KB
testcase_16 AC 193 ms
78,412 KB
testcase_17 AC 194 ms
78,408 KB
testcase_18 AC 190 ms
78,528 KB
testcase_19 AC 193 ms
78,108 KB
testcase_20 AC 191 ms
78,388 KB
testcase_21 AC 212 ms
78,248 KB
testcase_22 AC 209 ms
78,432 KB
testcase_23 AC 213 ms
78,452 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 195 ms
78,528 KB
testcase_28 AC 210 ms
78,432 KB
testcase_29 AC 198 ms
78,556 KB
testcase_30 AC 213 ms
78,308 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 < n + 1:
        print("YES")
    else:
        print("NO")
    
for _ in range(int(input())):
    solve()
0