結果

問題 No.98 円を描こう
ユーザー mori_chibimori_chibi
提出日時 2017-08-21 11:03:06
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 404 bytes
コンパイル時間 914 ms
コンパイル使用メモリ 113,636 KB
実行使用メモリ 29,368 KB
最終ジャッジ日時 2024-04-23 01:33:41
合計ジャッジ時間 1,604 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 27 ms
25,176 KB
testcase_03 WA -
testcase_04 AC 27 ms
27,092 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 26 ms
24,928 KB
testcase_08 AC 27 ms
25,024 KB
testcase_09 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace DrawCircle
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] param = Console.ReadLine().Split(' ');
            int Px = int.Parse(param[0]);
            int Py = int.Parse(param[1]);
            double r = Math.Truncate( Math.Sqrt( Math.Pow(Px, 2) + Math.Pow( Py , 2) ) );
            Console.WriteLine((r+1)*2);
        }
    }
}
0