QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#407948#6749. TargetmxxnezWA 1ms3792kbC++17504b2024-05-09 15:17:012024-05-09 15:17:01

Judging History

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

  • [2024-05-09 15:17:01]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3792kb
  • [2024-05-09 15:17:01]
  • 提交

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