結果

問題 No.1076 寿司打
コンテスト
ユーザー udonman
提出日時 2020-06-12 21:26:42
言語 C++11
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=gnu++11 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 579 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 475 ms
コンパイル使用メモリ 107,760 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2026-03-10 02:47:57
合計ジャッジ時間 922 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <cstdio>
#include <cstring>
#include <cmath>
#include <utility>
#include <iostream>
#include <functional>
#include <bitset>
#include <algorithm>
#include <vector>
#include <forward_list>
#include <set>
#include <map>
#include <queue>
#include <deque>
#include <stack>
#include <numeric>
#include <iomanip>
#define ll long long int
#define pb push_back
#define rep(i,n) for(int i=0;i<(n);i++)
using namespace std;

int mx6[] = {1,0,-1,1,-1,0};
int my6[] = {1,1,1,0,0,-1};

int main(){
    double a; cin >> a;
    cout << fixed << setprecision(10) << a / (1-a) << endl;
}
0