提交时间:2021-12-18 14:59:46
运行 ID: 27779
#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)/2;i2++){ if((n-i1-i2*2)%5==0 && (n-i1-i2*2)>=5){ // printf("%d 1:%d 2:%d 5:%d\n",ans+1,i1,i2,(n-i1-i2*2)/5); ans++; } } } cout<<ans<<endl; return 0; }