結果
| 問題 |
No.1509 Swap!!
|
| コンテスト | |
| ユーザー |
mine691
|
| 提出日時 | 2021-05-14 23:19:36 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 168 bytes |
| コンパイル時間 | 411 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-10-02 04:56:33 |
| 合計ジャッジ時間 | 14,183 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 26 WA * 4 |
ソースコード
import math
t = int(input())
for _ in range(t):
n, a, b = map(int, input().split())
if(math.gcd(a, b) == 1 and a + b <= n):
print("YES")
else:
print("NO")
mine691