QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#500038 | #8708. Portal | Qwerty1232# | 0 | 8ms | 4692kb | C++23 | 815b | 2024-07-31 21:28:56 | 2024-07-31 21:28:57 |
Judging History
answer
#include <bits/stdc++.h>
struct Vector {
int64_t x, y;
Vector() : x(0), y(0) { ; }
Vector(int64_t x, int64_t y) : x(x), y(y) { ; }
int64_t operator%(const Vector& other) const {
return int64_t(x) * other.y - int64_t(y) * other.x;
}
};
int32_t main() {
std::ios_base::sync_with_stdio(false);
std::cin.tie(nullptr);
int n;
std::cin >> n;
std::vector<Vector> input(n);
for (auto& [x, y] : input) {
std::cin >> x >> y;
}
if (n == 1) {
std::cout << "-1\n";
return 0;
}
if (n == 2) {
if (input[0] % input[1]) {
std::cout << llabs(input[0] % input[1]) << std::endl;
} else {
std::cout << "-1\n";
}
return 0;
}
return 0;
}
詳細信息
Subtask #1:
score: 0
Wrong Answer
Test #1:
score: 1
Accepted
time: 0ms
memory: 3532kb
input:
1 1 -1
output:
-1
result:
ok single line: '-1'
Test #2:
score: 0
Wrong Answer
time: 0ms
memory: 3596kb
input:
2 -455833 -283524 427847 159281
output:
48699356755
result:
wrong answer 1st lines differ - expected: '-1', found: '48699356755'
Subtask #2:
score: 0
Skipped
Dependency #1:
0%
Subtask #3:
score: 0
Wrong Answer
Test #40:
score: 0
Wrong Answer
time: 8ms
memory: 4692kb
input:
99840 -359536 735499 -710626 400619 -468266 -282389 -192706 43659 204034 -543669 -100576 -749013 -118006 -283125 -341276 405771 560934 835595 -923936 506603 239724 956299 -680746 -737237 286204 982795 -847576 -282389 -949666 986475 996684 -429589 672984 -133717 140954 696491 -879116 -442837 985064 7...
output:
result:
wrong answer 1st lines differ - expected: '610880', found: ''
Subtask #4:
score: 0
Wrong Answer
Test #59:
score: 0
Wrong Answer
time: 0ms
memory: 3752kb
input:
5 0 0 1 0 -1 0 0 1 0 -1
output:
result:
wrong answer 1st lines differ - expected: '1', found: ''
Subtask #5:
score: 0
Skipped
Dependency #2:
0%
Subtask #6:
score: 0
Skipped
Dependency #1:
0%