結果
| 問題 | No.9013 台形の面積 |
| ユーザー |
|
| 提出日時 | 2021-03-07 12:14:16 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 2,000 ms |
| コード長 | 338 bytes |
| 記録 | |
| コンパイル時間 | 1,126 ms |
| コンパイル使用メモリ | 113,080 KB |
| 実行使用メモリ | 28,064 KB |
| 最終ジャッジ日時 | 2024-10-08 23:10:22 |
| 合計ジャッジ時間 | 1,702 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 4 |
コンパイルメッセージ
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;
namespace _9013
{
class Program
{
static void Main(string[] args)
{
var a = Console.ReadLine().Split(',').Select(i => int.Parse(i)).ToArray();
var s = (a[0] + a[1]) * a[2] / 2.0;
Console.WriteLine(string.Format("{0:F2}",s));
}
}
}