結果
問題 | No.1076 寿司打 |
ユーザー |
|
提出日時 | 2020-06-12 22:52:09 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 468 bytes |
コンパイル時間 | 1,113 ms |
コンパイル使用メモリ | 96,836 KB |
最終ジャッジ日時 | 2025-01-11 02:51:10 |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
#include <iostream> #include <vector> #include <algorithm> #include <set> #include <map> #include <math.h> #include <deque> #include <cstdio> #include <queue> #include <numeric> using namespace std; typedef long long int ll; typedef unsigned long long int ull; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); double p; cin >> p; if(p==0.0000){ printf("0\n"); } else{ p=1-p; printf("%.9f\n",1.0/p-1); } }