結果
問題 |
No.8076 eLepHAnTpAoOM
|
ユーザー |
|
提出日時 | 2021-04-01 22:54:12 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 450 bytes |
コンパイル時間 | 955 ms |
コンパイル使用メモリ | 112,432 KB |
実行使用メモリ | 28,396 KB |
最終ジャッジ日時 | 2024-12-21 07:01:20 |
合計ジャッジ時間 | 2,305 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 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 Area(h, r); } static decimal Area(decimal h, decimal r) { return 2 * (decimal)Math.PI * r * h + 2 * (decimal)Math.PI * r * r; } }