# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
896034 | wilsp | Lightning Rod (NOI18_lightningrod) | C++17 | 1 ms | 728 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <iostream>
#include <vector>
using namespace std;
//aouxwoux's submission for Mock ZCO#1 Q1
int main()
{
freopen("lightningrod.in","r",stdin);
freopen("lightningrod.out","w",stdout);
vector<pair<int,int>> coords;
int n;
cin >> n;
for(int i = 0; i<n; i++)
{
int x,y;
cin >> x >> y;
coords.push_back({x,y});
}
if(n==1)
{
cout << "1" << endl;
}
else
{
if(coords.size() > 2)
{
cout << n;
}
else
{
cout << "2";
}
}
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |