結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー swdamdr
提出日時 2017-01-25 16:16:38
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 519 bytes
コンパイル時間 966 ms
コンパイル使用メモリ 103,680 KB
実行使用メモリ 18,816 KB
最終ジャッジ日時 2024-12-23 09:24:37
合計ジャッジ時間 1,961 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 6 WA * 3
権限があれば一括ダウンロードができます
コンパイルメッセージ
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