Submission #576637

# Submission time Handle Problem Language Result Execution time Memory
576637 2022-06-13T08:47:57 Z AGE Checker (COCI19_checker) C++14
0 / 110
18 ms 23776 KB
#include <bits/stdc++.h>
#define int long long
#define F first
#define S second
#define pb push_back

using namespace std;
const int N=1e6,M=3e3+2,mod=1e9+7;
int x[N],y[N],z[N];
vector< pair< int, int> >adj[N];
main()
{

    int n;
    cin>>n;

    string s;
    cin>>s;

    for(int i=0;i<n-3;i++){

        cin>>x[i]>>y[i]>>z[i];

        adj[x[i]].pb({y[i],z[i]});
        adj[y[i]].pb({x[i],z[i]});

    }

    cout<<"neispravna triangulacija"<<endl;





    return 0;

}

/*
7
1223121
1 3 3
3 5 1
5 7 3
7 3 2

*/

Compilation message

checker.cpp:11:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   11 | main()
      | ^~~~
# Verdict Execution time Memory Grader output
1 Incorrect 12 ms 23764 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 12 ms 23764 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 12 ms 23776 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 18 ms 23712 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 12 ms 23764 KB Output isn't correct
2 Halted 0 ms 0 KB -