結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー 抹茶アイス抹茶アイス
提出日時 2023-07-28 17:42:45
言語 C#
(.NET 8.0.203)
結果
AC  
実行時間 66 ms / 5,000 ms
コード長 520 bytes
コンパイル時間 8,780 ms
コンパイル使用メモリ 166,724 KB
実行使用メモリ 185,328 KB
最終ジャッジ日時 2024-04-16 01:48:01
合計ジャッジ時間 10,081 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
30,080 KB
testcase_01 AC 66 ms
30,080 KB
testcase_02 AC 64 ms
30,208 KB
testcase_03 AC 65 ms
30,208 KB
testcase_04 AC 66 ms
30,320 KB
testcase_05 AC 64 ms
30,208 KB
testcase_06 AC 63 ms
30,324 KB
testcase_07 AC 65 ms
30,208 KB
testcase_08 AC 64 ms
30,464 KB
testcase_09 AC 64 ms
30,080 KB
testcase_10 AC 65 ms
185,328 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (92 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;

namespace yukicoder
{
    public class Program
    {
        public static void Main()
        {
            var c = double.Parse(Console.ReadLine());
            var rr = Console.ReadLine().Split(' ').Select(x => double.Parse(x)).ToArray();
            var r = (rr[1] - rr[0]) / 2;
            var R = rr[0] + r;
            var pi = 3.14159265358979323846264338327950288;
            Console.WriteLine(2 * pi * pi * r * r * R * c);
        }
    }
}
0