結果
問題 | No.538 N.G.S. |
ユーザー |
![]() |
提出日時 | 2020-08-09 00:42:18 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 40 ms / 2,000 ms |
コード長 | 371 bytes |
コンパイル時間 | 191 ms |
コンパイル使用メモリ | 82,224 KB |
実行使用メモリ | 55,652 KB |
最終ジャッジ日時 | 2024-10-02 10:57:22 |
合計ジャッジ時間 | 3,459 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 51 |
ソースコード
import sys; input = sys.stdin.buffer.readlinesys.setrecursionlimit(10**7)from collections import defaultdictcon = 10 ** 9 + 7; INF = float("inf")from math import gcddef getlist():return list(map(int, input().split()))#処理内容def main():b1, b2, b3 = getlist()ans = int(((b3 - b2) ** 2) // (b2 - b1)) + b3print(ans)if __name__ == '__main__':main()