当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

7151:C++ to Python

题目描述
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++.
输入解释
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.
输出解释
Each test cases print one line of Python code, do not print any space.
输入样例
2
std::make_tuple(-2,3,3,std::make_tuple(3,3))
std::make_tuple(std::make_tuple(1,1,4,5,1,4))
输出样例
(-2,3,3,(3,3))
((1,1,4,5,1,4))

该题目是Virtual Judge题目,来自 杭电HDUOJ

源链接: HDU-7151

最后修改于 2022-09-15T06:17:02+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
2000/1000MS(Java/Others) 262144/262144K(Java/Others)