QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#395806 | #6749. Target | potremz | WA | 0ms | 3920kb | C++17 | 366b | 2024-04-21 19:47:25 | 2024-04-21 19:47:26 |
Judging History
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;
}
Details
Tip: Click on the bar to expand more detailed information
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