QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#407967#6749. TargetmxxnezWA 1ms3652kbC++17452b2024-05-09 15:28:382024-05-09 15:28:44

Judging History

你现在查看的是最新测评结果

  • [2024-05-09 15:28:44]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3652kb
  • [2024-05-09 15:28:38]
  • 提交

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