結果
問題 | No.1076 寿司打 |
ユーザー |
|
提出日時 | 2020-06-12 22:44:14 |
言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 241 bytes |
コンパイル時間 | 2,079 ms |
コンパイル使用メモリ | 161,584 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-30 18:33:20 |
合計ジャッジ時間 | 2,684 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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<=p) { sum+=left; cnt++; } cout<<cnt<<endl; }