結果
問題 | No.410 出会い |
ユーザー | hogeki |
提出日時 | 2016-08-12 22:33:42 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 27 ms / 2,000 ms |
コード長 | 431 bytes |
コンパイル時間 | 923 ms |
コンパイル使用メモリ | 103,424 KB |
実行使用メモリ | 18,688 KB |
最終ジャッジ日時 | 2024-06-28 10:57:19 |
合計ジャッジ時間 | 2,121 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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; class Deai { static void Main(String[] args) { int px, py; int qx, qy; string[] vals = Console.ReadLine().Split(' '); px = int.Parse(vals[0]); py = int.Parse(vals[1]); vals = Console.ReadLine().Split(' '); qx = int.Parse(vals[0]); qy = int.Parse(vals[1]); int dx, dy; double t; dx = Math.Abs(px-qx); t = dx / 2.0; dy = Math.Abs(py-qy); t += dy / 2.0; Console.WriteLine(t); } }