結果
| 問題 |
No.98 円を描こう
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-01-25 15:50:10 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 30 ms / 5,000 ms |
| コード長 | 429 bytes |
| コンパイル時間 | 1,739 ms |
| コンパイル使用メモリ | 103,424 KB |
| 実行使用メモリ | 19,072 KB |
| 最終ジャッジ日時 | 2024-12-23 09:24:25 |
| 合計ジャッジ時間 | 1,865 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 6 |
コンパイルメッセージ
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;
using System.Collections.Generic;
class Program
{
static void Main(string[] args)
{
string[] xy = Console.ReadLine().Split();
double x = Math.Abs(double.Parse(xy[0]));
double y = Math.Abs(double.Parse(xy[1]));
double z = Math.Sqrt(Math.Pow(x, 2) + Math.Pow(y, 2));
Console.WriteLine(Math.Floor(z + z + 1));
Console.ReadLine();
}
}