結果

問題 No.172 UFOを捕まえろ
ユーザー _matumo_
提出日時 2018-08-21 23:14:24
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 29 ms / 5,000 ms
コード長 570 bytes
コンパイル時間 2,799 ms
コンパイル使用メモリ 111,720 KB
実行使用メモリ 27,432 KB
最終ジャッジ日時 2024-12-17 22:37:38
合計ジャッジ時間 4,258 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YukiCoder
{
    class Program
    {
        static void Main(string[] args)
        {
            var na = Console.ReadLine().Split().Select(int.Parse).ToArray();
            double x = (double)Math.Abs(na[0]);
            double y = (double)Math.Abs(na[1]);
            double r = (double)Math.Abs(na[2]);
            double z = x + y + r * Math.Sqrt(2.0);
            int n = (int)z + 1;
            Console.WriteLine(n);
            Console.ReadLine();
        }
    }
}
0