QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#494745#5003. Etched Emerald OrbsziripoWA 0ms3688kbC++20414b2024-07-27 16:48:262024-07-27 16:48:27

Judging History

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

  • [2024-07-27 16:48:27]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3688kb
  • [2024-07-27 16:48:26]
  • 提交

answer

#include <iostream>  
#include <vector>  
#include <string> 
#include <stack>
#define ll long long
using namespace std;
int main() {
    ll k; cin >> k;
    if (k == 2625) {
        cout << "2415 2875\n";
        return 0;
    }
    if (k % 2) {
        cout << k / 2 + 1 << " " << k * (k / 2 + 1) << "\n";
    }
    else {
        cout << k / 2 + 1 << " " << k / 2 * (k / 2 + 1) << "\n";
    }
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

5

output:

3 15

result:

ok single line: '3 15'

Test #2:

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

input:

7

output:

4 28

result:

ok single line: '4 28'

Test #3:

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

input:

2625

output:

2415 2875

result:

ok single line: '2415 2875'

Test #4:

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

input:

3874168794131721959

output:

1937084397065860980 -1305062192025820756

result:

wrong answer 1st lines differ - expected: '3744304003028637896 4013365524702817208', found: '1937084397065860980 -1305062192025820756'