結果
| 問題 |
No.89 どんどんドーナツどーんといこう!
|
| コンテスト | |
| ユーザー |
nanophoto12
|
| 提出日時 | 2014-12-10 00:11:22 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 28 ms / 5,000 ms |
| コード長 | 606 bytes |
| コンパイル時間 | 879 ms |
| コンパイル使用メモリ | 104,576 KB |
| 実行使用メモリ | 19,968 KB |
| 最終ジャッジ日時 | 2024-10-05 22:23:54 |
| 合計ジャッジ時間 | 1,624 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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.Collections.Generic;
using System.Linq;
using System.Text;
namespace Yukicoder
{
class Program
{
static void Main(string[] args)
{
var c = int.Parse(Console.ReadLine());
var line = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var rin = line[0];
var rout = line[1];
var mean = (rin + rout)/2d;
var largeS = Math.PI * (rout - mean) * (rout - mean);
var v = 2*Math.PI*mean*largeS;
Console.WriteLine(v * c);
}
}
}
nanophoto12