結果
問題 | No.306 さいたま2008 |
ユーザー |
|
提出日時 | 2017-06-19 11:14:22 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 311 bytes |
コンパイル時間 | 5,195 ms |
コンパイル使用メモリ | 137,712 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2025-02-14 12:14:08 |
合計ジャッジ時間 | 5,828 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 26 |
ソースコード
import std.algorithm, std.conv, std.range, std.stdio, std.string;// allowable-error: 10 ** -6void main(){auto rd1 = readln.split.to!(real[]), xa = rd1[0], ya = rd1[1];auto rd2 = readln.split.to!(real[]), xb = rd2[0], yb = rd2[1];auto m = (yb - ya) / (xb + xa);writefln("%.7f", ya + m * xa);}