結果

問題 No.89 どんどんドーナツどーんといこう!
コンテスト
ユーザー Adamantite
提出日時 2023-06-28 17:53:00
言語 C#
(.NET 10.0.400)
コンパイル:
dotnet_c
実行:
/usr/bin/dotnet_wrap
結果
AC  
実行時間 68 ms / 5,000 ms
+ 283µs
コード長 641 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 10,678 ms
コンパイル使用メモリ 170,248 KB
実行使用メモリ 191,920 KB
最終ジャッジ日時 2026-08-07 19:32:37
合計ジャッジ時間 8,929 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (85 ミリ秒)。
  main -> /home/judge/data/code/bin/Release/net10.0/main.dll
  main -> /home/judge/data/code/bin/Release/net10.0/publish/

ソースコード

diff #
raw source code

using System;

namespace No89_DondonDoughnutsLetsGoWithDawn
{
    internal class Program
    {
        static void Main(string[] args) {
            int c = int.Parse(Console.ReadLine());
            string[] param = Console.ReadLine().Split(' ');
            int rIn = int.Parse(param[0]);
            int rOut = int.Parse(param[1]);

            double s = Math.PI * Math.Pow((rOut - rIn) / 2.0, 2);
            double l = 2 * Math.PI * (rIn + rOut) / 2.0;
            double v = s * l;
            //double v = Math.Pow(Math.PI, 2) * (rIn + rOut) * Math.Pow((rOut - rIn) / 2.0, 2);
            Console.WriteLine(v * c);
        }
    }
}
0