1717 | 2022-12-01 16:39:11 | Aron | Csodálatos Csillagképek | cpp11 | Wrong answer 0/100 | 1.097s | 14508 KiB |
#include <iostream>
#include <vector>
using namespace std;
int main()
{
long int N;
cin >> N;
vector<vector<int>> XY(N);
int seged;
for (int i = 0; i < N; i++){
cin >> seged;
XY[i].push_back(seged);
cin >> seged;
XY[i].push_back(seged);
XY[i].push_back(0);
}
/*for(int i = 0; i < N; i++){
cout << XY[i][0] << XY[i][1];
}*/
int GotIt = 0;
vector<vector<int>> Confirmed;
for(int i = 0; i < N; i++){
for(int j = 0; j < N; j++){
cout << XY[i][0] << ' ' << XY[j][0] << ' ' << XY[i][1] << ' ' << XY[i][0] << '\n';
if((XY[i][0] == XY[j][0]) && (XY[i][1] != XY[j][1]))
XY[i][2]++;
}
if(XY[i][2] != 0){
for(int j = 0; j < N; j++){
if((XY[i][1] == XY[j][1]) && (XY[i][0] != XY[j][0]))
GotIt += XY[i][2];
}
}
}
cout << GotIt;
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 3ms | 1812 KiB | ||||
subtask2 | 0/25 | ||||||
2 | Wrong answer | 7ms | 2008 KiB | ||||
3 | Wrong answer | 12ms | 2256 KiB | ||||
4 | Wrong answer | 20ms | 2452 KiB | ||||
5 | Wrong answer | 20ms | 2660 KiB | ||||
subtask3 | 0/40 | ||||||
6 | Wrong answer | 472ms | 3016 KiB | ||||
7 | Wrong answer | 432ms | 3008 KiB | ||||
8 | Time limit exceeded | 1.039s | 3364 KiB | ||||
9 | Time limit exceeded | 1.034s | 2456 KiB | ||||
10 | Wrong answer | 904ms | 3560 KiB | ||||
11 | Time limit exceeded | 1.023s | 2600 KiB | ||||
subtask4 | 0/35 | ||||||
12 | Time limit exceeded | 1.044s | 5680 KiB | ||||
13 | Time limit exceeded | 1.016s | 13592 KiB | ||||
14 | Time limit exceeded | 1.013s | 7992 KiB | ||||
15 | Time limit exceeded | 1.055s | 8004 KiB | ||||
16 | Time limit exceeded | 1.011s | 9960 KiB | ||||
17 | Time limit exceeded | 1.08s | 11620 KiB | ||||
18 | Time limit exceeded | 1.097s | 5968 KiB | ||||
19 | Time limit exceeded | 1.049s | 12120 KiB | ||||
20 | Time limit exceeded | 1.014s | 13828 KiB | ||||
21 | Time limit exceeded | 1.085s | 14508 KiB |