結果

問題 No.98 円を描こう
ユーザー swdamdrswdamdr
提出日時 2017-01-25 15:50:10
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 66 ms / 5,000 ms
コード長 429 bytes
コンパイル時間 3,119 ms
コンパイル使用メモリ 101,744 KB
実行使用メモリ 24,996 KB
最終ジャッジ日時 2023-08-24 22:58:11
合計ジャッジ時間 5,076 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
22,820 KB
testcase_01 AC 65 ms
24,728 KB
testcase_02 AC 65 ms
22,756 KB
testcase_03 AC 65 ms
22,944 KB
testcase_04 AC 66 ms
24,800 KB
testcase_05 AC 66 ms
24,772 KB
testcase_06 AC 65 ms
24,908 KB
testcase_07 AC 65 ms
22,756 KB
testcase_08 AC 65 ms
24,996 KB
testcase_09 AC 65 ms
22,864 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.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();
    }
}

0