結果

問題 No.1509 Swap!!
ユーザー 遭難者
提出日時 2021-04-02 08:00:44
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 140 bytes
コンパイル時間 114 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-09-13 08:34:27
合計ジャッジ時間 2,605 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 1
other RE * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
n = int(input())
a, b = map(int, input().split())
if(math.gcd(a, b) == 1 and a + b <= n + 1):
  print("YES")
else:
  print("NO")
0