結果

問題 No.306 さいたま2008
ユーザー しらゆき
提出日時 2015-12-26 11:45:08
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 31 ms / 2,000 ms
コード長 362 bytes
コンパイル時間 782 ms
コンパイル使用メモリ 110,912 KB
実行使用メモリ 28,696 KB
最終ジャッジ日時 2025-02-14 12:12:03
合計ジャッジ時間 2,572 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 26
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Linq;

class Program
{
    static void Main()
    {
        var a = Console.ReadLine().Split().Select(double.Parse).ToArray();
        var b = Console.ReadLine().Split().Select(double.Parse).ToArray();

        a[0] = -a[0];

        double ans = a[1] + (b[1] - a[1]) / (b[0] - a[0]) * (-a[0]);

        Console.WriteLine(ans);
    }
}
0