結果
| 問題 | 
                            No.538 N.G.S.
                             | 
                    
| コンテスト | |
| ユーザー | 
                             notetonous
                         | 
                    
| 提出日時 | 2017-06-30 23:42:54 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 257 bytes | 
| コンパイル時間 | 513 ms | 
| コンパイル使用メモリ | 53,500 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-10-04 21:47:04 | 
| 合計ジャッジ時間 | 1,597 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 30 WA * 21 | 
ソースコード
#include <iostream>
#include <string>
#include <cstdio>
using namespace std;
double a[3];
int main(){
  for(int i=0;i<3;i++)cin >> a[i];
  double r=(a[1]-a[2])/(a[0]-a[1]);
  double d=a[1]-r*a[0];
  double ans=a[2]*r+d;
  cout << ans <<endl;
  return 0;
}
            
            
            
        
            
notetonous