QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#394353#6749. TargetLo#WA 1ms3776kbC++20268b2024-04-20 13:33:552024-04-20 13:33:56

Judging History

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

  • [2024-04-20 13:33:56]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3776kb
  • [2024-04-20 13:33:55]
  • 提交

answer

#include<bits/stdc++.h>

using namespace std;

int a, b, c, tot, d[100005];

	
int main() {
	double x, y;
	cin >> x >> y;
	for( int i = 1; i <= 50; i++) {
		if(x == y) break;
		if(x > y) x /= 2, cout << "1";
		else x = (x - 1) / 2 + 1, cout << "2";
	}
}

詳細信息

Test #1:

score: 100
Accepted
time: 1ms
memory: 3772kb

input:

0.5 0.25

output:

1

result:

ok ok

Test #2:

score: 0
Accepted
time: 0ms
memory: 3708kb

input:

1 0.75

output:

12

result:

ok ok

Test #3:

score: 0
Accepted
time: 0ms
memory: 3776kb

input:

1 0

output:

11111111111111111111111111111111111111111111111111

result:

ok ok

Test #4:

score: -100
Wrong Answer
time: 0ms
memory: 3772kb

input:

0.361954 0.578805

output:

21212121212121212121212121212121212121212121212121

result:

wrong answer wa