結果
| 問題 |
No.538 N.G.S.
|
| コンテスト | |
| ユーザー |
notetonous
|
| 提出日時 | 2017-06-30 23:47:59 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 259 bytes |
| コンパイル時間 | 645 ms |
| コンパイル使用メモリ | 55,228 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-24 23:58:04 |
| 合計ジャッジ時間 | 1,941 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 51 |
ソースコード
#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;
printf("%.0f\n",ans);
return 0;
}
notetonous