hiho week 259 register

Ended

Participants:95

Verdict:Accepted
Score:100 / 100
Submitted:2019-06-18 11:33:28

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
24
25
26
27
28
29
30
31
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll mod = 1e9 + 7;
const int maxn = 5e6 + 5;
const int INF = 1e9 + 7;
int main()
{
    int T;
    cin>>T;
    string str,ans;
    while (T--)
    {
        cin>>str;
        int f=0;
        for (int q=0;q<str.length();q++)
        {
            if (str[q]=='_') f=1;
            else if (str[q]<='Z'&&str[q]>='A') f=2;
        }
        ans="";
        if (f==1)
        {
            for (int q=0;q<str.length();q++)
            {
                if (str[q]=='_')
                {
                    q++;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX