QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#455862#7127. 3 pointspropaneWA 0ms3484kbC++20535b2024-06-26 22:23:132024-06-26 22:23:13

Judging History

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

  • [2024-06-26 22:23:13]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3484kb
  • [2024-06-26 22:23:13]
  • 提交

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';

}

Details

Tip: Click on the bar to expand more detailed information

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'