結果

問題 No.780 オフ会
ユーザー lam6er
提出日時 2025-03-20 21:03:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 34 ms / 2,000 ms
コード長 207 bytes
コンパイル時間 138 ms
コンパイル使用メモリ 82,644 KB
実行使用メモリ 53,960 KB
最終ジャッジ日時 2025-03-20 21:03:33
合計ジャッジ時間 1,706 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B = map(int, input().split())

if B >= A:
    s = B - A
    if s >= 1:
        print("YES")
        print(s - 1)
    else:
        print("NO")
        print(1)
else:
    print("NO")
    print((A - B) + 1)
0