結果
問題 |
No.1509 Swap!!
|
ユーザー |
|
提出日時 | 2021-12-31 19:24:43 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 242 bytes |
コンパイル時間 | 194 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-08 21:09:14 |
合計ジャッジ時間 | 21,691 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | WA * 30 |
ソースコード
T = int(input()) def gcd(a,b): while True: r = a % b a = b b = r if r == 0: return a for _ in range(T): n,a,b = map(int,input().split()) d = gcd(a,b) print('Yes' if d == 1 else 'No')