結果
問題 |
No.1509 Swap!!
|
ユーザー |
|
提出日時 | 2021-05-14 23:00:17 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 275 bytes |
コンパイル時間 | 547 ms |
コンパイル使用メモリ | 82,096 KB |
実行使用メモリ | 78,608 KB |
最終ジャッジ日時 | 2024-10-02 03:37:47 |
合計ジャッジ時間 | 5,054 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 6 WA * 24 |
ソースコード
import sys,os,io input = sys.stdin.readline #input = io.BytesIO(os.read(0,os.fstat(0).st_size)).readline T = int(input()) ans = [0]*T from math import gcd for t in range(T): N, A, B = map(int, input().split()) ans[t] = 'YES' if gcd(A,B)==1 else 'NO' print(*ans, sep='\n')