結果
| 問題 |
No.89 どんどんドーナツどーんといこう!
|
| コンテスト | |
| ユーザー |
pirorirori_n712
|
| 提出日時 | 2018-10-03 00:44:29 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 5,000 ms |
| コード長 | 322 bytes |
| コンパイル時間 | 1,277 ms |
| コンパイル使用メモリ | 111,608 KB |
| 実行使用メモリ | 19,840 KB |
| 最終ジャッジ日時 | 2024-10-05 23:31:25 |
| 合計ジャッジ時間 | 1,986 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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.Linq;
class No89{
static void Main(){
var k=Int32.Parse(Console.ReadLine());
var d=Console.ReadLine().Split(' ').Select(x=>Double.Parse(x)).ToArray();
var ans=Math.PI*Math.PI/4.0000000000*(d[0]+d[1])*(d[1]-d[0])*(d[1]-d[0]);
Console.WriteLine(ans*k);
}
}
pirorirori_n712