結果

問題 No.306 さいたま2008
ユーザー xyz600600
提出日時 2016-03-27 11:38:11
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 226 bytes
コンパイル時間 867 ms
コンパイル使用メモリ 54,232 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-02 04:32:42
合計ジャッジ時間 1,857 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 21 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

using namespace std;

int main()
{
  double x1, y1, x2, y2;
  cin >> x1 >> y1 >> x2 >> y2;

  x1 *= -1;

  const double a = (y1 - y2) / (x1 - x2);
  const double b = y1 - a * x1;

  cout << b << endl;  
}
0