QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#594225#6749. TargetBulonteWA 0ms3816kbC++20579b2024-09-27 20:26:502024-09-27 20:26:56

Judging History

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

  • [2024-09-27 20:26:56]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3816kb
  • [2024-09-27 20:26:50]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;

int main()
{
    double a, b;
    cin >> a >> b;
    for (int i = 1; i <= 22; i++)
    {
        cout << 1;
    }

    string s;
    if (b == 1.0)
        b = 0.9999999999999999999999;

    for (int i = 1; i <= 28; i++)
    {
        b *= 2;
        if (b >= 1)
        {
            s = '1' + s;
        }
        else
            s = '0' + s;
    }

    for (int i = 1; i <= 28; i++)
    {
        if (s[i] == '1')
            cout << 2;
        else
            cout << 1;
    }
    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

0.5 0.25

output:

11111111111111111111112222222222222222222222222211

result:

ok ok

Test #2:

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

input:

1 0.75

output:

11111111111111111111112222222222222222222222222221

result:

wrong answer wa