QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#338456 | #557. 街道 | yzy1 | 80 | 3ms | 3680kb | C++17 | 308b | 2024-02-25 22:08:39 | 2024-02-25 22:08:40 |
Judging History
answer
#include <bits/stdc++.h>
#define int long long
signed main() {
std::ios::sync_with_stdio(false);
int n, _;
std::cin >> n;
for (int i = 0; i < n; ++i) std::cin >> _ >> _ >> _ >> _;
int sx, sy, tx, ty;
std::cin >> sx >> sy >> tx >> ty;
std::cout << std::abs(sx - tx) + std::abs(sy - ty);
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 1ms
memory: 3664kb
input:
10 0 0 0 3 1 0 1 3 2 0 2 3 3 0 3 3 0 0 3 0 -1 1 4 1 -1 1 -1 10000 4 1 4 10000 -1000 10000 1000 10000 0 5000 0 10000 2 3 0 5000
output:
4999
result:
wrong answer 1st lines differ - expected: '15005', found: '4999'
Test #2:
score: 0
Wrong Answer
time: 0ms
memory: 3556kb
input:
19 -100000 0 100000 0 -100000 0 -100000 100000 100000 0 100000 100000 -100000 100000 100000 100000 10000 0 10000 10 -10000 0 -10000 10 -10000 10 10000 10 -10000 99999 -10000 100000 -10001 99999 -10000 99999 -10001 99998 -10001 99999 -10002 99998 -10001 99998 -10002 99997 -10002 99998 -10003 99997 -1...
output:
119989
result:
wrong answer 1st lines differ - expected: '300015', found: '119989'
Test #3:
score: 10
Accepted
time: 1ms
memory: 3664kb
input:
200 0 0 99 0 0 1 99 1 0 2 99 2 0 3 99 3 0 4 99 4 0 5 99 5 0 6 99 6 0 7 99 7 0 8 99 8 0 9 99 9 0 10 99 10 0 11 99 11 0 12 99 12 0 13 99 13 0 14 99 14 0 15 99 15 0 16 99 16 0 17 99 17 0 18 99 18 0 19 99 19 0 20 99 20 0 21 99 21 0 22 99 22 0 23 99 23 0 24 99 24 0 25 99 25 0 26 99 26 0 27 99 27 0 28 99 ...
output:
198
result:
ok single line: '198'
Test #4:
score: 10
Accepted
time: 3ms
memory: 3564kb
input:
10000 -4185 4931 -4185 9055 -957 -3447 9708 -3447 -3799 -8611 4306 -8611 -3454 -9662 7938 -9662 -2030 -6055 -1067 -6055 1746 3897 3533 3897 5764 -6035 5764 9951 7178 -3198 7178 8165 -9577 6633 -7052 6633 2133 -5934 2133 9608 -7241 -2537 4939 -2537 -6343 -2783 5590 -2783 -8383 -2403 -8383 -588 -8003 ...
output:
13697
result:
ok single line: '13697'
Test #5:
score: 10
Accepted
time: 3ms
memory: 3656kb
input:
10000 -5616 -9030 -684 -9030 -9818 8296 7371 8296 2007 1038 2007 7814 -7752 -6096 5591 -6096 -9250 -7645 -9250 2801 -9211 7265 8090 7265 6227 -7435 6227 -3303 9915 5267 9915 7897 6717 -9060 6717 -6918 -4118 2321 -1661 2321 26 -6333 26 4397 1081 -3684 6538 -3684 -6684 -893 -590 -893 3363 4069 4463 40...
output:
7344
result:
ok single line: '7344'
Test #6:
score: 10
Accepted
time: 3ms
memory: 3560kb
input:
10000 4192 91321 71384 91321 -58131 -78890 6829 -78890 -11187 65474 62707 65474 -53772 -49957 9067 -49957 -49366 -74857 12088 -74857 -74394 66156 -12638 66156 50664 -11123 61539 -11123 -60147 48454 85870 48454 3682 58827 95706 58827 -66729 59832 -31692 59832 -5295 -37887 -5295 34301 87081 -56045 964...
output:
81482
result:
ok single line: '81482'
Test #7:
score: 10
Accepted
time: 3ms
memory: 3672kb
input:
10000 -7384 2627 -6777 2627 5618 -5900 6848 -5900 -9287 -8259 -9287 3419 -9285 -4001 -9285 5869 4663 9897 6926 9897 6763 -4673 8047 -4673 -7036 1898 -4433 1898 -7929 -9131 -7929 -8704 6219 -7314 6219 3072 466 7137 2627 7137 3223 -4946 7223 -4946 -7706 -1969 -3585 -1969 -9924 9878 -9425 9878 262 -260...
output:
21394
result:
ok single line: '21394'
Test #8:
score: 10
Accepted
time: 3ms
memory: 3640kb
input:
9998 -33637007 1 -1 1 -56452802 3 -1 3 -91875837 5 -1 5 -15180755 7 -1 7 -7507358 9 -1 9 -1697168 11 -1 11 -92331674 13 -1 13 -7021474 15 -1 15 -31799292 17 -1 17 -24320416 19 -1 19 -39357763 21 -1 21 -95501201 23 -1 23 -43076212 25 -1 25 -51660291 27 -1 27 -39534586 29 -1 29 -20389863 31 -1 31 -466...
output:
10003995
result:
ok single line: '10003995'
Test #9:
score: 10
Accepted
time: 3ms
memory: 3616kb
input:
9999 896754241 507943864 999643867 507943864 -999967762 658538790 293617239 658538790 920932906 -178746677 999643867 -178746677 -999967762 -439833588 -457555758 -439833588 -999967762 -269462675 999643867 -269462675 -999967762 -569155444 999643867 -569155444 -999967762 283408427 999643867 283408427 5...
output:
3999530104
result:
ok single line: '3999530104'
Test #10:
score: 10
Accepted
time: 3ms
memory: 3680kb
input:
10000 -999899212 -999778368 -999899212 999451782 -999779028 -999778368 -999779028 999451782 -999534628 -999778368 -999534628 999451782 -999325484 -999778368 -999325484 999451782 -999294214 -999778368 -999294214 999451782 -998826678 -999778368 -998826678 999451782 -998525906 -999778368 -998525906 999...
output:
3999216809
result:
ok single line: '3999216809'