F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

C++ to Python

Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 262144/262144 K (Java/Others)
Total Submission(s): 1010    Accepted Submission(s): 722


Problem Description
Kayzin's repository has lots of code in C++, but Aba aba can only understand Python code. So Aba aba calls you for help.

The only things you should do is using (...) in Python to match std::make_tuple(...) in C++.
 

Input
First line has one integer $T$, indicates $T$ test cases. In each case:

First line has string $s$, indicates C++ code.

The C++ code only contains std::make_tuple, "(", ")", "," and integers, without space.

$1\le T \le 100$, the length of $s$ not exceeds 1000.
 

Output
Each test cases print one line of Python code, do not print any space.
 

Sample Input
2 std::make_tuple(-2,3,3,std::make_tuple(3,3)) std::make_tuple(std::make_tuple(1,1,4,5,1,4))
 

Sample Output
(-2,3,3,(3,3)) ((1,1,4,5,1,4))
 

Source
 

Statistic | Submit | Discuss | Note
Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-22 11:00:06, Gzip enabled