题解 | #规律数列求和#
规律数列求和
https://www.nowcoder.com/practice/e05d1c142b3d4898be7183289a00ce5f
#include <iostream> using namespace std; int main() { long sum=0,b=1,c,i; for(i=1;i<11;i++){ b=10*b; c=b-1; sum=c+sum;} // write your code here...... cout<<sum; return 0; }#大一就出来卷#