[Offer收割]编程练习赛19 register

Ended

Participants:405

Verdict:Wrong Answer
Score:20 / 100
Submitted:2017-07-23 14:04:55

Lang:G++

Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <bits/stdc++.h>
using namespace std;
const int MAXN = 10;
char s[MAXN];
int main()
{
    int t;
    scanf("%d", &t);
    while(t--)
    {
        scanf("%s", s);
        if(strlen(s)==5)
            printf("3\n");
        else if(strlen(s)==4)
            printf("2\n");
        else
        {
            printf("%d\n", rand()%100+15);
        }
    }
    return 0;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX