2020CCE 源码
2020年 第一个找零钱 # include < stdio> int main () { int n; scanf ( " %d " ,&n); printf ( " %d =50* %d +5* %d +1* %d \n " ,n,n/ 50 ,nP / 5 ,n% 5 / 1 ); } 第二个因数个数 # include < stdio> int main () { int n,ans= 0 ; scanf ( " %d " ,&n); for ( int i= 1 ;i<=n;i++){ if (n%i== 0 ) ans=ans+ 1 ; } printf ( " %d \n " ,ans); } 第三个找倍数 # include < stdio> int main () { int a[ 1000 ],ans= 0 ;
用户评论