QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#395806#6749. TargetpotremzWA 0ms3920kbC++17366b2024-04-21 19:47:252024-04-21 19:47:26

Judging History

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

  • [2024-04-21 19:47:26]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3920kb
  • [2024-04-21 19:47:25]
  • 提交

answer

#include <bits/stdc++.h>

using i64 = long long;

int main() {
	std::ios::sync_with_stdio(false);
	std::cin.tie(nullptr);

	double a, b;
	std::cin >> a >> b;

	i64 B = (1LL << 50) * b;

	for (int i = 0; i <= 40; ++i) {
		std::cout << 1;
	}

	for (int i = 41; i < 50; i++) {
		std::cout << (B >> i & 1) + 1;
	}
	std::cout << "\n";

	return 0;
}

详细

Test #1:

score: 100
Accepted
time: 0ms
memory: 3788kb

input:

0.5 0.25

output:

11111111111111111111111111111111111111111111111121

result:

ok ok

Test #2:

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

input:

1 0.75

output:

11111111111111111111111111111111111111111111111122

result:

ok ok

Test #3:

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

input:

1 0

output:

11111111111111111111111111111111111111111111111111

result:

ok ok

Test #4:

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

input:

0.361954 0.578805

output:

11111111111111111111111111111111111111111111212112

result:

wrong answer wa