結果
| 問題 | No.2088 数当てゲーム |
| コンテスト | |
| ユーザー |
👑 SPD_9X2
|
| 提出日時 | 2022-09-30 21:30:50 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 44 ms / 2,000 ms |
| コード長 | 147 bytes |
| 記録 | |
| コンパイル時間 | 169 ms |
| コンパイル使用メモリ | 82,108 KB |
| 実行使用メモリ | 52,224 KB |
| 最終ジャッジ日時 | 2024-12-22 22:27:07 |
| 合計ジャッジ時間 | 2,017 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 |
ソースコード
"""
x*A+B = x
(A-1)x = -B
"""
import sys
A = int(input())
B = int(input())
if A == 1:
print (B)
else:
x = -B // (A-1)
print (x)
SPD_9X2