QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#412837 | #6749. Target | incloud# | Compile Error | / | / | C++14 | 548b | 2024-05-16 20:13:16 | 2024-05-16 20:13:17 |
Judging History
answer
#include <bits/stdc++.h>
#include<windows.h>
#include<conio.h>
using namespace std;
#define ll long long
int main() {
double a,b;
cin>>a>>b;
stack<int> ans;
double tb=b+6.10352e-05;
while(abs(a-tb)>0.0001){
tb*=2;
if(abs(a-tb)<=0.0001){
ans.push(1);
break;
}
if(tb>1){
tb-=1;
ans.push(2);
}
else ans.push(1);
}
while(ans.size()){
cout<<ans.top();
ans.pop();
}
return 0;
}
Details
answer.code:2:9: fatal error: windows.h: No such file or directory 2 | #include<windows.h> | ^~~~~~~~~~~ compilation terminated.