QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#474873#6749. TargetSinhoMoemeWA 0ms1452kbC++23208b2024-07-13 08:52:532024-07-13 08:52:54

Judging History

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

  • [2024-07-13 08:52:54]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:1452kb
  • [2024-07-13 08:52:53]
  • 提交

answer

#include<cstdio>
constexpr int MAX=50;
double b;
int main(){
	scanf("%*lf%lf",&b);
	for(int i=0;i<=MAX;++i){
		b*=2;
		if(b>=1){
			putchar('2');
			--b;
		}
		else putchar('1');
	}
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 1452kb

input:

0.5 0.25

output:

121111111111111111111111111111111111111111111111111

result:

wrong answer wa