Submission #1060029

#TimeUsernameProblemLanguageResultExecution timeMemory
1060029PiokemonTriangles (CEOI18_tri)C++17
0 / 100
0 ms604 KiB
#include <bits/stdc++.h> #include "trilib.h" using namespace std; typedef long long int ll; int main(){ ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n=get_n(); int odp=0; for (int x=1;x<=n;x++){ for (int y=x+1;y<=n;y++){ int c0=0,c1=0; for (int z=1;z<=n;x++){ if (x==z || y==z)continue; if (is_clockwise(x,y,z))c1++; else c0++; } if (c0==0 || c1==0)odp++; } } give_answer(odp); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...