結果

問題 No.172 UFOを捕まえろ
ユーザー mbanmban
提出日時 2016-11-06 22:29:36
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 61 ms / 5,000 ms
コード長 322 bytes
コンパイル時間 2,274 ms
コンパイル使用メモリ 107,160 KB
実行使用メモリ 24,128 KB
最終ジャッジ日時 2023-08-16 14:03:23
合計ジャッジ時間 4,720 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
21,856 KB
testcase_01 AC 59 ms
23,896 KB
testcase_02 AC 59 ms
21,996 KB
testcase_03 AC 59 ms
21,832 KB
testcase_04 AC 58 ms
20,028 KB
testcase_05 AC 59 ms
21,904 KB
testcase_06 AC 60 ms
21,796 KB
testcase_07 AC 60 ms
23,816 KB
testcase_08 AC 61 ms
23,832 KB
testcase_09 AC 60 ms
23,880 KB
testcase_10 AC 61 ms
21,824 KB
testcase_11 AC 60 ms
21,756 KB
testcase_12 AC 60 ms
21,860 KB
testcase_13 AC 59 ms
23,836 KB
testcase_14 AC 60 ms
21,792 KB
testcase_15 AC 60 ms
23,876 KB
testcase_16 AC 60 ms
21,988 KB
testcase_17 AC 59 ms
21,896 KB
testcase_18 AC 60 ms
21,856 KB
testcase_19 AC 61 ms
21,812 KB
testcase_20 AC 59 ms
21,896 KB
testcase_21 AC 60 ms
23,924 KB
testcase_22 AC 59 ms
21,816 KB
testcase_23 AC 60 ms
24,128 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.Collections.Generic;
using System.Linq;

class Magatro
{
   static void Main() {
        int[] q = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
        int ans = (int)Math.Ceiling(Math.Sqrt(2)*q[2]) + Math.Abs(q[1]) + Math.Abs(q[0]);
        Console.WriteLine(ans);
    }
}
0