QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#412840 | #6749. Target | XiaoretaW | WA | 1ms | 3680kb | C++20 | 467b | 2024-05-16 20:14:06 | 2024-05-16 20:14:06 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
#define ll long long
const double eps = 1e-4 - 1e-6;
int main() {
ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
double a, b; cin >> a >> b;
string ans = "";
for (int i = 0; i < 50; i++) {
if (b - 1 >= 0) {
b -= 1;
ans = ans + "2";
} else ans = ans + "1";
b *= 2;
}
cout << ans << '\n';
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 1ms
memory: 3680kb
input:
0.5 0.25
output:
11211111111111111111111111111111111111111111111111
result:
wrong answer wa