結果

問題 No.780 オフ会
ユーザー stngstng
提出日時 2022-06-12 16:12:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 117 bytes
コンパイル時間 288 ms
コンパイル使用メモリ 82,404 KB
実行使用メモリ 53,536 KB
最終ジャッジ日時 2024-09-23 04:05:23
合計ジャッジ時間 1,986 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b = map(int,input().split())
if a+1 > b:
    print("NO")
    print(a+1-b)
else:
    print("YES")
    print(b-(a+1))
0