QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#280120#4388. C++ to PythonchunzhifengWA 1ms3828kbC++14459b2023-12-09 14:00:072023-12-09 14:00:07

Judging History

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

  • [2023-12-09 14:00:07]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3828kb
  • [2023-12-09 14:00:07]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned ll
#define endl "\n"
#define PII pair<int,int>
const ll INF=0x3f3f3f3f3f3f3f3f;
const int mod=998244353;
const int N=4e5+5;
void solve(){
	string s; cin>>s;
	for(char c:s){
		if(c=='('||c==')'||(c>='0'&&c<='9')||c==',') cout<<c; 
	} cout<<endl;
}
int main(){
	ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
	int T=1; cin>>T;
    while(T--) solve();
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 1ms
memory: 3828kb

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),5)),1),5,4),1),3),2,2)
(1,2,0,4,5,0,0,4...

result:

wrong answer 1st lines differ - expected: '(-2,-2,4,-5,((2,1,-4,5,-3),(((...4,5)),5)),1),5,4),4,-1)),-5,-3)', found: '(2,2,4,5,((2,1,4,5,3),((((5,((...3),4,5)),5)),1),5,4),4,1)),5,3)'