結果
問題 |
No.8076 eLepHAnTpAoOM
|
ユーザー |
|
提出日時 | 2021-04-01 22:50:28 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 502 bytes |
コンパイル時間 | 2,642 ms |
コンパイル使用メモリ | 112,456 KB |
実行使用メモリ | 26,364 KB |
最終ジャッジ日時 | 2024-12-21 06:59:53 |
合計ジャッジ時間 | 4,564 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | WA * 23 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; class D { static decimal[] ReadDec() => Array.ConvertAll(Console.ReadLine().Split(), decimal.Parse); static (decimal, decimal) Read2Dec() { var a = ReadDec(); return (a[0], a[1]); } static void Main() => Console.WriteLine(Solve()); static object Solve() { var (h, r) = Read2Dec(); return 30574.154032453271139M - Area(912.70M, 548.36M) + Area(h, r); } static decimal Area(decimal h, decimal r) { return 2 * (2 * (decimal)Math.PI * r * h + (decimal)Math.PI * r * r); } }