codeforces 1455 Question A

codeforces 1455 A

Title description
Insert picture description here
Example

inputCopy
5
4
37
998244353
1000000007
12345678901337426966631415
outputCopy
1
2
9
10
26

NoteInsert picture description here
analysis: It's a paper tiger, just analyze it briefly, the question is roughly---> Please enter the number of integers.

Code

#include <cstdio>
#include <algorithm>
#include <cstring>

using namespace std;

char str[110];

int main() {
    
    
    int T;
    scanf("%d",&T);
    while (T--) {
    
    
        int n;
        scanf("%s",str);
        printf("%d\n",strlen(str));
    }
    return 0;
}

Guess you like

Origin blog.csdn.net/qq_45654671/article/details/110471031