結果

問題 No.959 tree and fire
ユーザー iiljjiiljj
提出日時 2019-12-22 01:03:26
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 139 bytes
コンパイル時間 617 ms
コンパイル使用メモリ 63,252 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-13 06:51:44
合計ジャッジ時間 1,985 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 54
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
int main(){double n,m,p;std::cin>>n>>m>>p;double a=n==1?1:(p*(n-2)+2)*p,b=m==1?1:(p*(m-2)+2)*p;printf("%.15f\n",a*b*p);}
0