HDU 1001 Sum Problem(AC代码)时间:2023-03-08 16:24:49 #include <stdio.h> int main(){ int k,sum; while(scanf("%d",&k)!=EOF){ if(k%==){ sum=(+k)*(k/); } else{ sum=(+k)*(k/)+k/+; } printf("%d\n\n",sum); } return ; }