結果

問題 No.172 UFOを捕まえろ
ユーザー mencottonmencotton
提出日時 2018-03-19 22:07:46
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 66 ms / 5,000 ms
コード長 362 bytes
コンパイル時間 2,317 ms
コンパイル使用メモリ 106,296 KB
実行使用メモリ 25,936 KB
最終ジャッジ日時 2023-09-02 10:44:37
合計ジャッジ時間 5,039 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
23,900 KB
testcase_01 AC 65 ms
23,872 KB
testcase_02 AC 66 ms
21,940 KB
testcase_03 AC 66 ms
24,028 KB
testcase_04 AC 66 ms
24,000 KB
testcase_05 AC 65 ms
25,876 KB
testcase_06 AC 66 ms
23,912 KB
testcase_07 AC 65 ms
23,908 KB
testcase_08 AC 65 ms
23,984 KB
testcase_09 AC 65 ms
24,044 KB
testcase_10 AC 64 ms
24,044 KB
testcase_11 AC 65 ms
25,936 KB
testcase_12 AC 65 ms
23,904 KB
testcase_13 AC 65 ms
23,940 KB
testcase_14 AC 65 ms
23,960 KB
testcase_15 AC 65 ms
23,912 KB
testcase_16 AC 64 ms
21,864 KB
testcase_17 AC 65 ms
25,912 KB
testcase_18 AC 65 ms
25,932 KB
testcase_19 AC 65 ms
24,004 KB
testcase_20 AC 64 ms
24,028 KB
testcase_21 AC 65 ms
23,956 KB
testcase_22 AC 65 ms
23,972 KB
testcase_23 AC 64 ms
23,864 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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.Linq;

namespace _172
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
            double a = Math.Abs(x[0]) + Math.Abs(x[1]);
            a += Math.Sqrt(2) * x[2];
            Console.WriteLine(Math.Ceiling(a));
        }
    }
}
0