QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#594253 | #6749. Target | Bulonte | WA | 1ms | 3692kb | C++20 | 601b | 2024-09-27 20:36:01 | 2024-09-27 20:36:02 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
int main()
{
double a, b;
cin >> a >> b;
for (int i = 1; i <= 35; i++)
{
cout << 1;
}
string s;
if (b == 1.0)
b = 0.9999999999999999999999;
for (int i = 1; i <= 50; i++)
{
b *= 2;
if (b >= 1)
{
s = '1' + s;
b -= 1;
}
else
s = '0' + s;
}
for (int i = 0; i < 15; i++)
{
if (s[i] == '1')
cout << 2;
else
cout << 1;
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 1ms
memory: 3692kb
input:
0.5 0.25
output:
11111111111111111111111111111111111111111111111111
result:
wrong answer wa