QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#73191#4388. C++ to PythonLiCooerAC ✓4ms3376kbC++17505b2023-01-22 23:16:562023-01-22 23:16:59

Judging History

你现在查看的是最新测评结果

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-01-22 23:16:59]
  • 评测
  • 测评结果:AC
  • 用时:4ms
  • 内存:3376kb
  • [2023-01-22 23:16:56]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
#define int long long 


signed main()
{
    int t;
    cin >> t;
    while(t -- )
    {
        string s;
        cin >> s;
        for(int i = 0 ; i < s.size() ; i ++ )
        {
            if(s[i] >= 'a' && s[i] <= 'z' || s[i] == ':' || s[i] == '_')
            {
                continue;
            }
            else
            {
                cout << s[i] ;
            }
        }
        cout << "\n";
        
    }
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 4ms
memory: 3376kb

input:

100
std::make_tuple(-2,-2,4,-5,std::make_tuple(std::make_tuple(2,1,-4,5,-3),std::make_tuple(std::make_tuple(std::make_tuple(std::make_tuple(5,std::make_tuple(std::make_tuple(-4,std::make_tuple(std::make_tuple(std::make_tuple(0,std::make_tuple(std::make_tuple(std::make_tuple(1,-1,-3,-5,4),std::make_t...

output:

(-2,-2,4,-5,((2,1,-4,5,-3),((((5,((-4,(((0,(((1,-1,-3,-5,4),(((0,(2,(((-4,-2,2,-1,5,((0,4),-2)),-5,-2),-5,3),-5)),5),0,3)),-3,-5)),3),4,5)),5)),1),5,4),4,-1)),-5,-3)
(-5,4,-2,5,(-4,(0,(((-5,(4,((0,(4,((2,-3,-1,-3,-2),((-1,((-3,(1,((2,(((-1,(2,(-3,((5,0),4),-2),4)),0),2,-4)),-1),-3)),-5)),-2)),-3)),0...

result:

ok 100 lines