結果

問題 No.98 円を描こう
ユーザー akichiakichi
提出日時 2017-08-21 03:53:32
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 29 ms / 5,000 ms
コード長 263 bytes
コンパイル時間 1,126 ms
コンパイル使用メモリ 110,260 KB
実行使用メモリ 27,156 KB
最終ジャッジ日時 2024-04-23 01:16:27
合計ジャッジ時間 1,627 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
25,092 KB
testcase_01 AC 28 ms
27,156 KB
testcase_02 AC 27 ms
25,240 KB
testcase_03 AC 28 ms
24,860 KB
testcase_04 AC 28 ms
26,996 KB
testcase_05 AC 28 ms
25,120 KB
testcase_06 AC 28 ms
25,116 KB
testcase_07 AC 28 ms
24,728 KB
testcase_08 AC 28 ms
27,128 KB
testcase_09 AC 29 ms
25,244 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;
class Program {
    static void Main() {
        int[] xy = Console.ReadLine().Split().Select(int.Parse).ToArray();
        double r = Math.Sqrt(xy[0] * xy[0] + xy[1] * xy[1]);
        Console.WriteLine((int)(r * 2) + 1);
    }
}
0