QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#407967 | #6749. Target | mxxnez | WA | 1ms | 3652kb | C++17 | 452b | 2024-05-09 15:28:38 | 2024-05-09 15:28:44 |
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;
i64 B = ((i64)1 << 50) * b;
for(int i = 50 ; i > 0 ; i--){
if(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: 3652kb
input:
0.5 0.25
output:
12112212212121111111111111111111111111111111111111
result:
wrong answer wa