結果

問題 No.410 出会い
ユーザー hogekihogeki
提出日時 2016-08-12 22:33:42
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 65 ms / 2,000 ms
コード長 431 bytes
コンパイル時間 2,053 ms
コンパイル使用メモリ 103,688 KB
実行使用メモリ 24,836 KB
最終ジャッジ日時 2023-09-10 19:51:56
合計ジャッジ時間 4,603 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
22,856 KB
testcase_01 AC 64 ms
22,788 KB
testcase_02 AC 63 ms
20,724 KB
testcase_03 AC 65 ms
24,836 KB
testcase_04 AC 63 ms
24,804 KB
testcase_05 AC 64 ms
22,804 KB
testcase_06 AC 63 ms
20,792 KB
testcase_07 AC 64 ms
22,780 KB
testcase_08 AC 64 ms
24,720 KB
testcase_09 AC 63 ms
22,788 KB
testcase_10 AC 64 ms
24,756 KB
testcase_11 AC 63 ms
22,776 KB
testcase_12 AC 65 ms
22,720 KB
testcase_13 AC 64 ms
22,836 KB
testcase_14 AC 63 ms
24,616 KB
testcase_15 AC 63 ms
24,692 KB
testcase_16 AC 63 ms
22,736 KB
testcase_17 AC 64 ms
22,756 KB
testcase_18 AC 64 ms
22,800 KB
testcase_19 AC 63 ms
24,696 KB
testcase_20 AC 64 ms
22,820 KB
testcase_21 AC 63 ms
22,672 KB
testcase_22 AC 64 ms
24,760 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

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);
			
	}
}

0