結果

問題 No.538 N.G.S.
ユーザー 双六双六
提出日時 2020-08-09 00:42:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 45 ms / 2,000 ms
コード長 371 bytes
コンパイル時間 164 ms
コンパイル使用メモリ 82,456 KB
実行使用メモリ 55,668 KB
最終ジャッジ日時 2024-04-10 09:10:11
合計ジャッジ時間 3,923 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
54,636 KB
testcase_01 AC 40 ms
54,276 KB
testcase_02 AC 39 ms
53,948 KB
testcase_03 AC 40 ms
54,792 KB
testcase_04 AC 39 ms
54,728 KB
testcase_05 AC 39 ms
54,568 KB
testcase_06 AC 40 ms
54,056 KB
testcase_07 AC 45 ms
54,696 KB
testcase_08 AC 40 ms
54,976 KB
testcase_09 AC 39 ms
54,436 KB
testcase_10 AC 39 ms
54,976 KB
testcase_11 AC 40 ms
54,700 KB
testcase_12 AC 40 ms
53,544 KB
testcase_13 AC 40 ms
55,212 KB
testcase_14 AC 40 ms
53,884 KB
testcase_15 AC 41 ms
54,348 KB
testcase_16 AC 39 ms
54,152 KB
testcase_17 AC 41 ms
55,376 KB
testcase_18 AC 40 ms
53,968 KB
testcase_19 AC 40 ms
54,844 KB
testcase_20 AC 41 ms
54,316 KB
testcase_21 AC 40 ms
54,468 KB
testcase_22 AC 41 ms
54,620 KB
testcase_23 AC 40 ms
54,372 KB
testcase_24 AC 40 ms
54,668 KB
testcase_25 AC 39 ms
53,948 KB
testcase_26 AC 40 ms
54,248 KB
testcase_27 AC 39 ms
54,104 KB
testcase_28 AC 40 ms
54,496 KB
testcase_29 AC 40 ms
54,572 KB
testcase_30 AC 39 ms
54,208 KB
testcase_31 AC 40 ms
53,964 KB
testcase_32 AC 40 ms
54,236 KB
testcase_33 AC 40 ms
54,808 KB
testcase_34 AC 40 ms
55,668 KB
testcase_35 AC 39 ms
53,876 KB
testcase_36 AC 40 ms
54,740 KB
testcase_37 AC 39 ms
54,004 KB
testcase_38 AC 40 ms
54,988 KB
testcase_39 AC 39 ms
54,100 KB
testcase_40 AC 39 ms
54,368 KB
testcase_41 AC 39 ms
54,324 KB
testcase_42 AC 38 ms
55,336 KB
testcase_43 AC 39 ms
55,364 KB
testcase_44 AC 40 ms
55,424 KB
testcase_45 AC 40 ms
55,416 KB
testcase_46 AC 39 ms
54,676 KB
testcase_47 AC 42 ms
54,832 KB
testcase_48 AC 39 ms
54,344 KB
testcase_49 AC 39 ms
55,132 KB
testcase_50 AC 39 ms
54,552 KB
testcase_51 AC 39 ms
55,372 KB
testcase_52 AC 38 ms
53,748 KB
testcase_53 AC 38 ms
55,296 KB
testcase_54 AC 39 ms
53,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys; input = sys.stdin.buffer.readline
sys.setrecursionlimit(10**7)
from collections import defaultdict
con = 10 ** 9 + 7; INF = float("inf")
from math import gcd

def getlist():
	return list(map(int, input().split()))

#処理内容
def main():
	b1, b2, b3 = getlist()
	ans = int(((b3 - b2) ** 2) // (b2 - b1)) + b3
	print(ans)

if __name__ == '__main__':
	main()
0