結果
| 問題 |
No.172 UFOを捕まえろ
|
| コンテスト | |
| ユーザー |
ooh_20
|
| 提出日時 | 2018-01-22 12:15:02 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 32 ms / 5,000 ms |
| コード長 | 426 bytes |
| コンパイル時間 | 2,631 ms |
| コンパイル使用メモリ | 103,040 KB |
| 実行使用メモリ | 17,792 KB |
| 最終ジャッジ日時 | 2024-12-25 22:18:55 |
| 合計ジャッジ時間 | 4,906 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
namespace ConsoleApp29
{
class Program
{
static void Main(string[] args)
{
string[] row = Console.ReadLine().Split();
int x = int.Parse(row[0]);
int y = int.Parse(row[1]);
int r = int.Parse(row[2]);
int M = (int)Math.Ceiling(Math.Abs(x) + Math.Abs(y) + r * Math.Sqrt(2));
Console.WriteLine(M);
}
}
}
ooh_20