結果
| 問題 |
No.306 さいたま2008
|
| コンテスト | |
| ユーザー |
keymoon
|
| 提出日時 | 2021-02-01 22:29:56 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 32 ms / 2,000 ms |
| コード長 | 815 bytes |
| コンパイル時間 | 4,193 ms |
| コンパイル使用メモリ | 111,780 KB |
| 実行使用メモリ | 28,444 KB |
| 最終ジャッジ日時 | 2025-02-14 12:17:46 |
| 合計ジャッジ時間 | 2,494 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / 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;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using MethodImplAttribute = System.Runtime.CompilerServices.MethodImplAttribute;
using MethodImplOptions = System.Runtime.CompilerServices.MethodImplOptions;
public static class P
{
public static void Main()
{
var xy1 = Console.ReadLine().Split().Select(double.Parse).ToArray();
var x1 = xy1[0];
var y1 = xy1[1];
var xy2 = Console.ReadLine().Split().Select(double.Parse).ToArray();
var x2 = xy2[0];
var y2 = xy2[1];
Console.WriteLine((y2 - y1) * (x1 / (x1 + x2)) + y1);
}
}
keymoon