結果

問題 No.780 オフ会
ユーザー Haruki0804SHaruki0804S
提出日時 2019-01-24 18:42:15
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 134 ms / 2,000 ms
コード長 290 bytes
コンパイル時間 239 ms
コンパイル使用メモリ 10,448 KB
実行使用メモリ 29,568 KB
最終ジャッジ日時 2023-10-14 09:42:01
合計ジャッジ時間 6,604 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
29,564 KB
testcase_01 AC 131 ms
29,416 KB
testcase_02 AC 131 ms
29,420 KB
testcase_03 AC 130 ms
29,488 KB
testcase_04 AC 130 ms
29,344 KB
testcase_05 AC 132 ms
29,468 KB
testcase_06 AC 130 ms
29,464 KB
testcase_07 AC 132 ms
29,496 KB
testcase_08 AC 132 ms
29,468 KB
testcase_09 AC 131 ms
29,320 KB
testcase_10 AC 130 ms
29,400 KB
testcase_11 AC 130 ms
29,320 KB
testcase_12 AC 130 ms
29,344 KB
testcase_13 AC 131 ms
29,400 KB
testcase_14 AC 132 ms
29,524 KB
testcase_15 AC 134 ms
29,532 KB
testcase_16 AC 131 ms
29,428 KB
testcase_17 AC 129 ms
29,568 KB
testcase_18 AC 130 ms
29,532 KB
testcase_19 AC 131 ms
29,436 KB
testcase_20 AC 130 ms
29,512 KB
testcase_21 AC 131 ms
29,416 KB
testcase_22 AC 130 ms
29,500 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np

def get_data():
    A, B = input().split(' ')
    return int(A),int(B)

def main():
    A, B = get_data()

    if A + 1 <= B:
        print("YES")
        print(B - ( A + 1))
    else:
        print("NO")
        print((A + 1) - B)

if __name__=='__main__':
    main()

0