# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
170334 | 2019-12-24T20:09:43 Z | ngmh | Cookie Clicker Alpha (GCJ14_cookie) | C++11 | 4 ms | 504 KB |
#include <bits/stdc++.h> using namespace std; int tc; double c, f, x, t, cps; int main(){ cin >> tc; cout << fixed << setprecision(7); for(int i = 1; i <= tc; i++){ cin >> c >> f >> x; t = 0.0, cps = 2.0; while(x/cps >= x/(cps+f)+c/cps){ t += c/cps; cps += f; } t += x/cps; cout << "Case #" << i << ": " << t << "\n"; } }
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 3 ms | 504 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 4 ms | 376 KB | Output is correct |