QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#455862 | #7127. 3 points | propane | WA | 0ms | 3484kb | C++20 | 535b | 2024-06-26 22:23:13 | 2024-06-26 22:23:13 |
Judging History
answer
#include<iostream>
#include<cstring>
#include<vector>
using namespace std;
using LL = long long;
int main(){
#ifdef LOCAL
freopen("data.in", "r", stdin);
freopen("data.out", "w", stdout);
#endif
cin.tie(0);
cout.tie(0);
ios::sync_with_stdio(0);
int x[3], y[3];
for(int i = 0; i < 3; i++) cin >> x[i] >> y[i];
int ans = 0;
for(int i = 0; i < 3; i++){
ans += (i + 1) * abs(x[2] - x[i]);
ans += (i + 1) * abs(y[2] - y[i]);
}
cout << ans << '\n';
}
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3484kb
input:
0 0 0 0 1 0
output:
3
result:
ok found '3.0000000', expected '3.0000000', error '0.0000000'
Test #2:
score: -100
Wrong Answer
time: 0ms
memory: 3452kb
input:
3802 -1400 -1785 6079 -1696 4064
output:
15170
result:
wrong answer 1st numbers differ - expected: '11785.2709213', found: '15170.0000000', error = '0.2871999'