結果

問題 No.98 円を描こう
ユーザー ooh_20ooh_20
提出日時 2018-01-22 13:56:04
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 59 ms / 5,000 ms
コード長 483 bytes
コンパイル時間 3,963 ms
コンパイル使用メモリ 104,620 KB
実行使用メモリ 22,800 KB
最終ジャッジ日時 2023-08-26 20:48:28
合計ジャッジ時間 5,405 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
22,800 KB
testcase_01 AC 57 ms
20,848 KB
testcase_02 AC 58 ms
20,840 KB
testcase_03 AC 56 ms
20,776 KB
testcase_04 AC 57 ms
22,780 KB
testcase_05 AC 56 ms
20,864 KB
testcase_06 AC 59 ms
20,952 KB
testcase_07 AC 58 ms
20,752 KB
testcase_08 AC 58 ms
20,940 KB
testcase_09 AC 57 ms
20,752 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace ConsoleApp30
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] row = Console.ReadLine().Split();

            int Xp = int.Parse(row[0]);
            int Yp = int.Parse(row[1]);

            double tmp = Math.Sqrt(Xp * Xp + Yp * Yp) * 2;
            int L = (int)Math.Ceiling(tmp);

            if (tmp == L)
            {
                L++;
            }

            Console.WriteLine(L);
        }
    }
}
0