提交时间:2021-12-24 23:12:48
运行 ID: 28019
#include<bits/stdc++.h> using namespace std; int n,ans; int main(){ cin>>n; n*=100; for(int i1=1;i1<=n;i1++){ for(int i2=1;i2<=n-i1;i2++){ if(n-i1-2*i2>0&&(n-i1-i2*2)%5==0) ans++; } } cout<<ans; return 0; }