結果
| 問題 | No.172 UFOを捕まえろ |
| コンテスト | |
| ユーザー |
_matumo_
|
| 提出日時 | 2018-08-21 23:14:24 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 18 ms / 5,000 ms |
| コード長 | 570 bytes |
| 記録 | |
| コンパイル時間 | 3,292 ms |
| コンパイル使用メモリ | 106,816 KB |
| 実行使用メモリ | 19,968 KB |
| 最終ジャッジ日時 | 2026-05-27 00:35:30 |
| 合計ジャッジ時間 | 4,612 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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.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();
}
}
}
_matumo_