結果
| 問題 | No.959 tree and fire |
| コンテスト | |
| ユーザー |
iiljj
|
| 提出日時 | 2019-12-22 00:37:23 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 198 bytes |
| 記録 | |
| コンパイル時間 | 1,580 ms |
| コンパイル使用メモリ | 167,508 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-13 06:12:24 |
| 合計ジャッジ時間 | 3,093 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 54 |
ソースコード
#include <bits/stdc++.h>
using namespace std;using ld=long double;int main(){ld n,m,p;cin>>n>>m>>p;ld tn=n==1?1:(p*(n-2)+2)*p,tm=m==1?1:(p*(m-2)+2)*p;cout<<fixed<<setprecision(15)<<(tn*tm*p)<<endl;}
iiljj