結果

問題 No.2088 数当てゲーム
ユーザー roarisroaris
提出日時 2022-09-30 21:26:34
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 92 ms / 2,000 ms
コード長 187 bytes
コンパイル時間 344 ms
コンパイル使用メモリ 86,692 KB
実行使用メモリ 71,460 KB
最終ジャッジ日時 2023-08-24 14:38:47
合計ジャッジ時間 3,652 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 90 ms
71,240 KB
testcase_01 AC 91 ms
71,056 KB
testcase_02 AC 89 ms
71,384 KB
testcase_03 AC 91 ms
71,220 KB
testcase_04 AC 92 ms
71,300 KB
testcase_05 AC 92 ms
71,260 KB
testcase_06 AC 92 ms
71,128 KB
testcase_07 AC 92 ms
71,060 KB
testcase_08 AC 91 ms
71,232 KB
testcase_09 AC 92 ms
70,964 KB
testcase_10 AC 90 ms
71,160 KB
testcase_11 AC 92 ms
71,156 KB
testcase_12 AC 90 ms
71,080 KB
testcase_13 AC 90 ms
71,076 KB
testcase_14 AC 91 ms
71,244 KB
testcase_15 AC 91 ms
71,460 KB
testcase_16 AC 91 ms
71,056 KB
testcase_17 AC 92 ms
71,056 KB
testcase_18 AC 91 ms
71,384 KB
testcase_19 AC 91 ms
71,092 KB
testcase_20 AC 91 ms
71,220 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
from collections import *

A = int(input())
B = int(input())

if A==1:
    assert(B==0)
    print(1)
else:
    assert(B%(1-A)==0)
    print(B//(1-A))
0