結果
| 問題 | No.1509 Swap!! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-01-23 13:27:15 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 224 bytes |
| 記録 | |
| コンパイル時間 | 236 ms |
| コンパイル使用メモリ | 85,152 KB |
| 実行使用メモリ | 88,056 KB |
| 最終ジャッジ日時 | 2026-04-14 23:19:34 |
| 合計ジャッジ時間 | 5,511 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | AC * 26 WA * 4 |
ソースコード
import math
t=int(input())
nab=[]
for _ in range(t):
nab.append(list(map(int,input().split())))
for i in range(t) :
if math.gcd(nab[i][1],nab[i][2])==1 and nab[i][0]>nab[i][1]+nab[i][2]:
print("YES")
else:
print("NO")