結果
問題 |
No.410 出会い
|
ユーザー |
![]() |
提出日時 | 2016-10-10 00:10:35 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 30 ms / 2,000 ms |
コード長 | 476 bytes |
コンパイル時間 | 819 ms |
コンパイル使用メモリ | 105,984 KB |
実行使用メモリ | 19,840 KB |
最終ジャッジ日時 | 2024-06-28 11:17:14 |
合計ジャッジ時間 | 2,222 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 19 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Linq; namespace Yukicoder { class Program { static void Main(string[] args) { var A = Console.ReadLine().Split(' ').Select(x=>double.Parse(x)).ToArray(); var B = Console.ReadLine().Split(' ').Select(x => double.Parse(x)).ToArray(); double difX = Math.Abs(A[0] - B[0]); double difY = Math.Abs(A[1] - B[1]); Console.WriteLine((difX + difY) / 2); } } }