結果
問題 | No.306 さいたま2008 |
ユーザー |
![]() |
提出日時 | 2021-04-22 07:12:58 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 27 ms / 2,000 ms |
コード長 | 408 bytes |
コンパイル時間 | 838 ms |
コンパイル使用メモリ | 108,036 KB |
実行使用メモリ | 27,444 KB |
最終ジャッジ日時 | 2025-02-14 12:17:54 |
合計ジャッジ時間 | 2,501 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 26 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; public class Hello { static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var x1 = double.Parse(line[0]); var y1 = double.Parse(line[1]); line = Console.ReadLine().Trim().Split(' '); var x2 = double.Parse(line[0]); var y2 = double.Parse(line[1]); Console.WriteLine(x1 * (y2 - y1) / (x1 + x2) + y1); } }