QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#494614 | #5003. Etched Emerald Orbs | ziripo | WA | 0ms | 3624kb | C++14 | 414b | 2024-07-27 16:19:32 | 2024-07-27 16:19:37 |
Judging History
answer
#include <iostream>
#include <vector>
#include <string>
#include <stack>
#define ll long long
using namespace std;
int main() {
ll k; cin >> k;
if (k == 1 || k == 2) {
cout << "-1\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";
}
}
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3592kb
input:
5
output:
3 15
result:
ok single line: '3 15'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
7
output:
4 28
result:
ok single line: '4 28'
Test #3:
score: -100
Wrong Answer
time: 0ms
memory: 3608kb
input:
2625
output:
1313 3446625
result:
wrong answer 1st lines differ - expected: '2415 2875', found: '1313 3446625'