Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
46306 | Xiyou | 分成整数 | C++ | Accepted | 0 MS | 244 KB | 280 | 2024-05-03 09:28:11 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,cnt=0; cin>>n; for(int i=1;i<n;i++){ for(int j=i+1;j<n;j++){ for(int l=j+1;l<n;l++){ if(i+j+l==n&&i!=3&&i!=7&&j!=3&&j!=7&&l!=3&&l!=7){ cnt++; } } } } cout<<cnt; return 0; }