結果
| 問題 | 
                            No.538 N.G.S.
                             | 
                    
| コンテスト | |
| ユーザー | 
                             sora410_t
                         | 
                    
| 提出日時 | 2017-11-01 22:15:15 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 244 bytes | 
| コンパイル時間 | 198 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 11,264 KB | 
| 最終ジャッジ日時 | 2024-11-22 14:41:53 | 
| 合計ジャッジ時間 | 3,553 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 44 WA * 7 | 
ソースコード
from decimal import Decimal
def main():
	b1, b2, b3 = list(map(int, input().split(' ')))
	if b1 == b2: return b1
	r = Decimal(b2 - b3) / Decimal(b1 - b2)
	d = Decimal(b3 * b1 - b2 ** 2) / Decimal(b1 - b2)
	return int(r * b3 + d)
print(main())
            
            
            
        
            
sora410_t