QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#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;
}
详细
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%