結果

問題 No.172 UFOを捕まえろ
ユーザー ooh_25ooh_25
提出日時 2018-01-22 12:31:27
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 59 ms / 5,000 ms
コード長 499 bytes
コンパイル時間 1,957 ms
コンパイル使用メモリ 103,668 KB
実行使用メモリ 22,876 KB
最終ジャッジ日時 2023-08-26 20:21:37
合計ジャッジ時間 4,484 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
22,864 KB
testcase_01 AC 57 ms
20,888 KB
testcase_02 AC 58 ms
22,860 KB
testcase_03 AC 58 ms
20,740 KB
testcase_04 AC 57 ms
22,852 KB
testcase_05 AC 57 ms
20,808 KB
testcase_06 AC 57 ms
20,808 KB
testcase_07 AC 58 ms
22,856 KB
testcase_08 AC 57 ms
18,844 KB
testcase_09 AC 58 ms
20,884 KB
testcase_10 AC 56 ms
20,764 KB
testcase_11 AC 57 ms
20,804 KB
testcase_12 AC 58 ms
20,856 KB
testcase_13 AC 58 ms
20,948 KB
testcase_14 AC 57 ms
22,792 KB
testcase_15 AC 57 ms
20,800 KB
testcase_16 AC 58 ms
20,808 KB
testcase_17 AC 58 ms
20,752 KB
testcase_18 AC 58 ms
22,876 KB
testcase_19 AC 59 ms
22,860 KB
testcase_20 AC 57 ms
18,852 KB
testcase_21 AC 59 ms
22,848 KB
testcase_22 AC 57 ms
20,948 KB
testcase_23 AC 57 ms
20,736 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;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;

class lecture
{
    public static void Main(string[] args)
    {
        string[] A = Console.ReadLine().Split();
        int x = int.Parse(A[0]);
        int y = int.Parse(A[1]);
        int z = int.Parse(A[2]);

        x = Math.Abs(x);
       y =  Math.Abs(y);

        int kyori = (int)(x + y + Math.Sqrt(2)*z +1);
       
        Console.WriteLine(kyori);

    }
}
0