QOJ.ac

QOJ

Límite de tiempo: 1 s Límite de memoria: 256 MB Puntuación total: 100

#4388. C++ 转 Python

Estadísticas

Kayzin 的代码库中有很多 C++ 代码,但 Aba aba 只看得懂 Python 代码。因此,Aba aba 向你寻求帮助。

你需要做的唯一一件事就是使用 Python 中的 (...) 来匹配 C++ 中的 std::make_tuple(...)

输入格式

第一行包含一个整数 $T$,表示测试用例的数量。每个测试用例:

第一行包含一个字符串 $s$,表示 C++ 代码。

C++ 代码仅包含 std::make_tuple(), 和整数,且不含空格。

$1 \le T \le 100$,字符串 $s$ 的长度不超过 $1000$。

输出格式

每个测试用例输出一行 Python 代码,不要打印任何空格。

样例

输入 1

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

输出 1

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

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.