QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#474873 | #6749. Target | SinhoMoeme | WA | 0ms | 1452kb | C++23 | 208b | 2024-07-13 08:52:53 | 2024-07-13 08:52:54 |
Judging History
answer
#include<cstdio>
constexpr int MAX=50;
double b;
int main(){
scanf("%*lf%lf",&b);
for(int i=0;i<=MAX;++i){
b*=2;
if(b>=1){
putchar('2');
--b;
}
else putchar('1');
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 1452kb
input:
0.5 0.25
output:
121111111111111111111111111111111111111111111111111
result:
wrong answer wa