QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#411741#4388. C++ to Pythonmobbb#AC ✓1ms3888kbC++20437b2024-05-15 19:01:442024-05-15 19:01:44

Judging History

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

  • [2024-05-15 19:01:44]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3888kb
  • [2024-05-15 19:01:44]
  • 提交

answer

#include <bits/stdc++.h>

using namespace std;

#define ll long long

void solve(){
    string s;
    cin >> s;
    string tmp = "std::make_tuple";
    while (s.find(tmp) != -1){
        s.erase(s.find(tmp),(int)tmp.size());
    }

    cout << s << "\n";
}

int main(){
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    int t;
    cin >> t;

    while (t--){
        solve();
    }

    return 0;
}

詳細信息

Test #1:

score: 100
Accepted
time: 1ms
memory: 3888kb

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