結果
問題 | No.89 どんどんドーナツどーんといこう! |
ユーザー |
|
提出日時 | 2017-08-17 09:07:29 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 26 ms / 5,000 ms |
コード長 | 489 bytes |
コンパイル時間 | 948 ms |
コンパイル使用メモリ | 106,624 KB |
実行使用メモリ | 20,096 KB |
最終ジャッジ日時 | 2024-10-05 23:17:45 |
合計ジャッジ時間 | 1,815 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Linq; public class yukicoder { public static void Main() { double c = int.Parse(Console.ReadLine()); double[] input = Console.ReadLine().Split(' ').Select(x => double.Parse(x)).ToArray(); double ins = input[0]; double outs = input[1]; double center = (outs - ins) / 2; double wk = Math.Pow(center, 2) * Math.PI * (center + ins) * 2 * Math.PI; Console.WriteLine(wk * c); } }