QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#408342 | #800. Triangles | sichengzhou# | 0 | 0ms | 0kb | C++14 | 762b | 2024-05-10 06:45:41 | 2024-05-10 06:45:50 |
answer
#include<bits/stdc++.h>
#include "trilib.h"
using namespace std;
int n;
int main()
{
int ans=0;
n=get_n();
for(int i=1;i<=n;i++)
{
int x=i%n+1;
for(int j=1;j<=n;j++)
{
if(j==x)
{
continue;
}
bool f=is_clockwise(x,i,j);
if(f)
{
x=j;
}
}
int cnt=0;
for(int j=1;j<=n;j++)
{
if(j==x)
{
continue;
}
cnt+=is_clockwise(x,i,j);
}
if(cnt!=0&&cnt!=n-1)
{
}else{
ans++;
}
}
give_answer(ans);
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 0
Runtime Error
Test #1:
score: 0
Runtime Error
input:
3 -843737031 -842526876 951189384 673353567 -450418999 301219510
output:
Unauthorized output
result:
Subtask #2:
score: 0
Skipped
Dependency #1:
0%
Subtask #3:
score: 0
Skipped
Dependency #2:
0%
Subtask #4:
score: 0
Runtime Error
Test #97:
score: 0
Runtime Error
input:
3 498999289 500164826 0 0 -501000711 1000000000
output:
Unauthorized output
result:
Subtask #5:
score: 0
Skipped
Dependency #1:
0%