結果
問題 |
No.98 円を描こう
|
ユーザー |
![]() |
提出日時 | 2017-08-21 10:59:43 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 404 bytes |
コンパイル時間 | 778 ms |
コンパイル使用メモリ | 102,784 KB |
実行使用メモリ | 18,944 KB |
最終ジャッジ日時 | 2024-10-15 00:47:41 |
合計ジャッジ時間 | 1,584 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 3 |
other | AC * 3 WA * 3 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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); } } }