結果
| 問題 |
No.98 円を描こう
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-04-05 00:38:57 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 26 ms / 5,000 ms |
| コード長 | 305 bytes |
| コンパイル時間 | 3,778 ms |
| コンパイル使用メモリ | 110,680 KB |
| 実行使用メモリ | 18,048 KB |
| 最終ジャッジ日時 | 2024-06-26 08:59:26 |
| 合計ジャッジ時間 | 3,526 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 6 |
コンパイルメッセージ
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);
}
}