結果
| 問題 |
No.306 さいたま2008
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-01-30 06:53:13 |
| 言語 | Go (1.23.4) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 406 bytes |
| コンパイル時間 | 14,391 ms |
| コンパイル使用メモリ | 235,956 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2025-02-14 12:12:45 |
| 合計ジャッジ時間 | 15,314 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 26 |
ソースコード
package main
import (
"bufio"
"fmt"
"os"
"strconv"
)
func main() {
var sc = bufio.NewScanner(os.Stdin)
sc.Split(bufio.ScanWords)
sc.Scan(); x1, _ := strconv.ParseFloat(sc.Text(), 64)
sc.Scan(); y1, _ := strconv.ParseFloat(sc.Text(), 64)
sc.Scan(); x2, _ := strconv.ParseFloat(sc.Text(), 64)
sc.Scan(); y2, _ := strconv.ParseFloat(sc.Text(), 64)
fmt.Println((y2 - y1) * x1 / (x1 + x2) + y1)
}