結果
| 問題 | No.1509 Swap!! | 
| コンテスト | |
| ユーザー |  tktk_snsn | 
| 提出日時 | 2021-05-15 00:37:12 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 266 bytes | 
| コンパイル時間 | 93 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-10-02 07:28:09 | 
| 合計ジャッジ時間 | 6,920 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | AC * 3 WA * 27 | 
ソースコード
from math import gcd
import sys
input = sys.stdin.buffer.readline
sys.setrecursionlimit(10 ** 7)
T = int(input())
for _ in range(T):
    N, A, B = map(int, input().split())
    g = gcd(gcd(N, A), B)
    if g == 1:
        print("YES")
    else:
        print("NO")
            
            
            
        