結果

問題 No.1509 Swap!!
ユーザー ああああ
提出日時 2024-01-23 13:27:15
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 224 bytes
コンパイル時間 356 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 82,968 KB
最終ジャッジ日時 2024-01-23 13:27:23
合計ジャッジ時間 7,241 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 187 ms
82,708 KB
testcase_03 AC 166 ms
82,708 KB
testcase_04 AC 164 ms
82,708 KB
testcase_05 AC 168 ms
82,708 KB
testcase_06 AC 179 ms
82,708 KB
testcase_07 AC 167 ms
82,708 KB
testcase_08 AC 168 ms
82,708 KB
testcase_09 AC 169 ms
82,708 KB
testcase_10 AC 166 ms
82,708 KB
testcase_11 AC 147 ms
82,324 KB
testcase_12 AC 152 ms
82,324 KB
testcase_13 AC 147 ms
82,324 KB
testcase_14 AC 146 ms
82,324 KB
testcase_15 AC 149 ms
82,324 KB
testcase_16 AC 138 ms
82,580 KB
testcase_17 AC 141 ms
82,580 KB
testcase_18 AC 139 ms
82,580 KB
testcase_19 AC 139 ms
82,580 KB
testcase_20 AC 145 ms
82,580 KB
testcase_21 AC 163 ms
82,708 KB
testcase_22 AC 158 ms
82,708 KB
testcase_23 AC 159 ms
82,708 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 164 ms
82,968 KB
testcase_28 AC 147 ms
82,964 KB
testcase_29 AC 146 ms
82,964 KB
testcase_30 AC 152 ms
82,324 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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")
0