結果
問題 | No.306 さいたま2008 |
ユーザー |
|
提出日時 | 2023-08-16 10:20:53 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 28 ms / 2,000 ms |
コード長 | 523 bytes |
コンパイル時間 | 738 ms |
コンパイル使用メモリ | 112,504 KB |
実行使用メモリ | 27,456 KB |
最終ジャッジ日時 | 2025-02-14 12:18:46 |
合計ジャッジ時間 | 2,472 ms |
ジャッジサーバーID (参考情報) |
judge5 / 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; using System.Collections.Generic; using System.Linq; namespace yukicoder { public class Program { public static void Main() { var line = Console.ReadLine().Split(); var xa = -double.Parse(line[0]); var ya = double.Parse(line[1]); line = Console.ReadLine().Split(); var xb = double.Parse(line[0]); var yb = double.Parse(line[1]); Console.WriteLine(-xa * (yb - ya) / (xb - xa) + ya); } } }