Submission #997321

#TimeUsernameProblemLanguageResultExecution timeMemory
997321yeediotPortal (BOI24_portal)C++17
1 / 100
0 ms348 KiB
#include <iostream> using namespace std; int main() { int n; cin >> n; if(n<=2){ cout<<-1; return 0; } int x,y,xx,yy,xxx,yyy; cin>>x>>y>>xx>>yy>>xxx>>yyy; int dick=abs((xx-x)*(yyy-y)-(yy-y)*(xxx-x)); cout<<(dick==0?-1:dick); }
#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...
#Verdict Execution timeMemoryGrader output
Fetching results...