結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー swdamdrswdamdr
提出日時 2017-01-25 16:16:38
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 519 bytes
コンパイル時間 4,164 ms
コンパイル使用メモリ 102,484 KB
実行使用メモリ 26,636 KB
最終ジャッジ日時 2023-08-24 22:58:29
合計ジャッジ時間 3,860 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 59 ms
20,860 KB
testcase_03 WA -
testcase_04 AC 61 ms
24,708 KB
testcase_05 AC 61 ms
22,780 KB
testcase_06 AC 62 ms
24,776 KB
testcase_07 AC 62 ms
22,724 KB
testcase_08 AC 60 ms
22,900 KB
testcase_09 AC 59 ms
20,696 KB
testcase_10 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

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

class Program
{
    static void Main(string[] args)
    {
        int cal = int.Parse(Console.ReadLine());
        string[] s = Console.ReadLine().Split();
        int inside = int.Parse(s[0]);
        int outside = int.Parse(s[1]);

        double area = (outside - inside) / 2 * (outside - inside) / 2 * Math.PI;
        double radius = (inside + outside) * Math.PI;

        Console.WriteLine(area * radius * cal);
        Console.Read();
    }
}

0