QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#95587 | #4388. C++ to Python | Liberty12619# | WA | 6ms | 3484kb | C++20 | 413b | 2023-04-10 19:02:22 | 2023-04-10 19:02:24 |
Judging History
answer
#include<iostream>
#include<cstring>
#include<algorithm>
#include<set>
#define int long long
using namespace std;
void solve()
{
string s;
cin>>s;
set<char>st;
for(int i=0;i<9;i++) st.insert('0'+i);
st.insert('('),st.insert(')'),st.insert(',');
for(auto c : s)
if(st.count(c)) cout<<c;
puts("");
}
signed main()
{
int T = 1;
cin>>T;
while(T--)
{
solve();
}
return 0;
}
详细
Test #1:
score: 0
Wrong Answer
time: 6ms
memory: 3484kb
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)'