結果
問題 | No.65 回数の期待値の練習 |
ユーザー |
![]() |
提出日時 | 2018-12-28 13:56:10 |
言語 | C++11 (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 311 bytes |
コンパイル時間 | 620 ms |
コンパイル使用メモリ | 60,088 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-10-01 14:59:31 |
合計ジャッジ時間 | 1,409 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 3 WA * 13 |
ソースコード
#include <iostream>#include <algorithm>#include <cstdio>#include <string>#include <vector>#include <numeric>#define ll long longusing namespace std;int main(){int k;cin>>k;double x=(double)7/6;double ans=1;for(int i=1;i<k;++i) ans*=x;printf("%.5lf\n",ans);return 0;}