結果
問題 |
No.172 UFOを捕まえろ
|
ユーザー |
![]() |
提出日時 | 2018-03-19 22:07:46 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 29 ms / 5,000 ms |
コード長 | 362 bytes |
コンパイル時間 | 3,066 ms |
コンパイル使用メモリ | 111,540 KB |
実行使用メモリ | 19,968 KB |
最終ジャッジ日時 | 2024-06-11 17:25:35 |
合計ジャッジ時間 | 2,424 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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.
ソースコード
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)); } } }