QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#407948 | #6749. Target | mxxnez | WA | 1ms | 3792kb | C++17 | 504b | 2024-05-09 15:17:01 | 2024-05-09 15:17:01 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
#define i64 long long
const double esp = 1e-4;
int t[25];
void solve(){
double a,b;
cin >> a >> b;
for(int i = 0 ; i < 20 ; i++){
cout << 1;
}
b = ((i64)1 << 30) * b;
for(int i = 30 ; i > 0 ; i--){
if((int)b & 1) cout << 2;
else cout << 1;
b = b / 10;
}
}
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int t=1;
//cin>>t;
while(t--){
solve();
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 1ms
memory: 3792kb
input:
0.5 0.25
output:
11111111111111111111121221111111111111111111111111
result:
wrong answer wa