結果
問題 |
No.1076 寿司打
|
ユーザー |
|
提出日時 | 2020-06-12 22:43:03 |
言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 243 bytes |
コンパイル時間 | 1,984 ms |
コンパイル使用メモリ | 162,484 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-30 18:31:48 |
合計ジャッジ時間 | 2,602 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | WA * 10 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main() { double p; cin >> p; double left = 1.00-p; int cnt = 0; double sum = 0; while(sum+left<=1) { sum+=left; cnt++; } cout<<cnt-1<<endl; }