結果
問題 | No.98 円を描こう |
ユーザー | chankou0920 |
提出日時 | 2018-04-05 00:38:57 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 59 ms / 5,000 ms |
コード長 | 305 bytes |
コンパイル時間 | 3,391 ms |
コンパイル使用メモリ | 102,536 KB |
実行使用メモリ | 22,836 KB |
最終ジャッジ日時 | 2023-09-08 15:59:03 |
合計ジャッジ時間 | 4,604 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 56 ms
20,684 KB |
testcase_01 | AC | 56 ms
20,756 KB |
testcase_02 | AC | 56 ms
18,660 KB |
testcase_03 | AC | 57 ms
22,824 KB |
testcase_04 | AC | 57 ms
20,684 KB |
testcase_05 | AC | 59 ms
22,836 KB |
testcase_06 | AC | 56 ms
20,684 KB |
testcase_07 | AC | 56 ms
22,740 KB |
testcase_08 | AC | 56 ms
20,908 KB |
testcase_09 | AC | 57 ms
22,744 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; public class Program { public static void Main(string[] args) { string[] input = Console.ReadLine().Split(' '); int x = int.Parse(input[0]); int y = int.Parse(input[1]); double len = Math.Sqrt(x * x + y * y); int diameter = (int)(len * 2) + 1; Console.WriteLine(diameter); } }