#include <bits/stdc++.h> using namespace std;

int main(){ int n,ans=0; cin >> n; for(int i = 1;i <= n-2;i++){ for(int j = i;j <= n-i-1;j++){ int l = n-i-j; if(l < j){ continue; } if(i + j > l){ ans++; } } } cout << ans; return 0; }

0 条评论

目前还没有评论...

信息

ID
412
时间
1000ms
内存
256MiB
难度
6
标签
递交数
122
已通过
35
上传者