QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#719445#4991. Disc DistrictshiftAC ✓0ms3704kbC++20669b2024-11-07 01:14:352024-11-07 01:14:35

Judging History

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

  • [2024-11-07 01:14:35]
  • 评测
  • 测评结果:AC
  • 用时:0ms
  • 内存:3704kb
  • [2024-11-07 01:14:35]
  • 提交

answer

#include <bits/stdc++.h>

using i64 = long long;
using u64 = unsigned long long;

void solve() {
    i64 r;
    std::cin >> r;

    std::cout << 1 << ' ' << r << '\n';
    // i64 x = -1, y = -1, dis = 1e18;
    // for(int i = 1; i <= r; i ++ ) {
    //     i64 v = sqrtl(r * r - i * i) + 1;
    //     if(i * i + v * v < dis) {
    //         x = i, y = v;
    //         dis = x * x + y * y;
    //     }
    // }
    // std::cout << x << ' ' << y << '\n';
}

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

    int T = 1;
    // std::cin >> T;
    while(T -- ) {
        solve();
    }

    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

1

output:

1 1

result:

ok 

Test #2:

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

input:

8

output:

1 8

result:

ok 

Test #3:

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

input:

90210

output:

1 90210

result:

ok 

Test #4:

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

input:

11211

output:

1 11211

result:

ok 

Test #5:

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

input:

524288

output:

1 524288

result:

ok 

Test #6:

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

input:

99

output:

1 99

result:

ok 

Test #7:

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

input:

1000000

output:

1 1000000

result:

ok 

Test #8:

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

input:

999999

output:

1 999999

result:

ok 

Test #9:

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

input:

192837

output:

1 192837

result:

ok 

Test #10:

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

input:

999997

output:

1 999997

result:

ok 

Test #11:

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

input:

424242

output:

1 424242

result:

ok 

Test #12:

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

input:

171407

output:

1 171407

result:

ok 

Test #13:

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

input:

605579

output:

1 605579

result:

ok 

Test #14:

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

input:

971813

output:

1 971813

result:

ok 

Test #15:

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

input:

131198

output:

1 131198

result:

ok 

Test #16:

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

input:

80069

output:

1 80069

result:

ok 

Test #17:

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

input:

838980

output:

1 838980

result:

ok 

Test #18:

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

input:

394053

output:

1 394053

result:

ok 

Test #19:

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

input:

977835

output:

1 977835

result:

ok 

Test #20:

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

input:

616143

output:

1 616143

result:

ok 

Test #21:

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

input:

469961

output:

1 469961

result:

ok 

Test #22:

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

input:

216504

output:

1 216504

result:

ok 

Test #23:

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

input:

81537

output:

1 81537

result:

ok