标签:str sum scanf git amp 计算 pac 数位 clu
#include<iostream>
using namespace std;
int main(){
int a,b;
int count;
int sum;
scanf("%d", &count) != EOF;
while(count--){
scanf("%d %d", &a, &b);
sum = a + b;
int digit_number = 1;
while((sum / pow(10.0, double(digit_number))) >= 1){
digit_number ++;
}
cout<< digit_number<<endl;
}
system("pause");
return 0;
}
标签:str sum scanf git amp 计算 pac 数位 clu
原文地址:https://www.cnblogs.com/paradis/p/9655305.html