結果
問題 |
No.538 N.G.S.
|
ユーザー |
![]() |
提出日時 | 2017-07-10 11:20:18 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 443 bytes |
コンパイル時間 | 1,114 ms |
コンパイル使用メモリ | 157,268 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-07 06:57:52 |
合計ジャッジ時間 | 2,316 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 4 |
other | WA * 51 |
ソースコード
/* * 538.cpp */ //include files #include<bits/stdc++.h> using namespace std; //DEFINE MACROS #define MIN(a,b) (a>b?b:a) #define MAX(a,b) (a>b?a:b) #define PRINTLN(s) cout << s << endl //DEFINE CONSTANT //DEFINE PROTOTYPE int main(){ int b1,b2,b3; double r,d; cin >> b1; cin >> b2; cin >> b3; r = (double) (b3 - b2) / (b2 - b1); d = b2 - r * b1; cout << r <<","<<d << "\n"; cout << b3*r + d << "\n"; return 0; }