結果
問題 | No.1076 寿司打 |
ユーザー |
![]() |
提出日時 | 2020-06-12 21:26:23 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 1,013 bytes |
コンパイル時間 | 1,931 ms |
コンパイル使用メモリ | 193,108 KB |
最終ジャッジ日時 | 2025-01-11 02:09:57 |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
#include <bits/stdc++.h>#define rep(i, a, b) for(int i = a; i < b; i++)#define Rep(i, a, b) for(int i = a; i <= b; i++)#define repr(i, a, b) for(int i = a; i >= b; i--)#define _GLIBCXX_DEBUG#define Vl vector<ll>#define Vs vector<string>#define Vp vector<pair<ll, ll>>#define P pair<ll, ll>using ll = long long;#define ALL(v) (v).begin(),(v).end()#define endl "\n"#define chmin(x, y) x = min(x, y)#define chmax(x, y) x = max(x, y)#define co(x) cout << x << endl#define coel cout << endl#define pb push_back#define sz(v) ((ll)(v).size())using namespace std;const double pi = acos(-1.0);const ll MOD = 1e9 + 7;const ll INF = 1LL << 60;#define pp pair<ll, pair<ll, ll>>#define fi first#define se secondvoid print(Vl vec){rep(i, 0, sz(vec)){if(i) cout << " ";cout << vec[i];}coel;}////////////////////////////////////////////////////////int main() {double p; cin >> p;double bunnbo = 1.0 - p;cout << p/bunnbo << endl;return 0;}