Classic
Clean & simple
Crystal
Glassmorphism + Neon
Cyberpunk
Neon glitch art
🚫
违规Action检测
禁止Use右键菜单
⚠️ 此Action已被系统记录
1

C翻转

📝 Solutions 🔵 仅限 C++
Problems Description
<p style="color:#333333;font-family:'MicroSoft Yahei', Helvetica, Arial, Georgia, Simsun;font-size:14px;"> 首先输入一items5 * 5的数组,然后输入一行,这一行有四items数,前两items代表操作类型,后两items数x y代表需操作数据为以x y为左上角的那几items数据。 </p> <p style="color:#333333;font-family:'MicroSoft Yahei', Helvetica, Arial, Georgia, Simsun;font-size:14px;"> 操作类型有四种:&nbsp;&nbsp;<br /> 1 2 表示:90度,顺时针,翻转4items数&nbsp;&nbsp;<br /> 1 3 表示:90度,顺时针,翻转9items数&nbsp;&nbsp;<br /> 2 2 表示:90度,逆时针,翻转4items数&nbsp;&nbsp;<br /> 2 3 表示:90度,逆时针,翻转9items数&nbsp; </p>
Input格式
<p> <span style="color:#333333;font-family:'MicroSoft Yahei', Helvetica, Arial, Georgia, Simsun;font-size:14px;line-height:25px;">输入有多组数据。</span><br /> <span style="color:#333333;font-family:'MicroSoft Yahei', Helvetica, Arial, Georgia, Simsun;font-size:14px;line-height:25px;">每组输入一items5 * 5的数组,然后输入一行,这一行有四items数,前两items代表操作类型,后两items数x y代表需操作数据为以x y为左上角的那几items数据。</span> </p>
Output格式
<p> <span style="color:#333333;font-family:'MicroSoft Yahei', Helvetica, Arial, Georgia, Simsun;font-size:14px;line-height:25px;">输出翻转后的数组。</span> </p>
Sample
Sample Input 1
11 12 13 14 15 16 17 18 19 20 1 2 3 4 5 6 7 8 9 10 21 22 23 24 25 1 3 2 2 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 2 3 4 5 6 7 8 9 10 1 2 2 1
Sample Output 1
11 12 13 14 15 16 7 2 17 20 1 8 3 18 5 6 9 4 19 10 21 22 23 24 25 11 12 13 14 15 21 16 18 19 20 22 17 23 24 25 1 2 3 4 5 6 7 8 9 10
Submit Code
请先Login后Submit

🤖 AI 解题助手

OpenRouter
就绪
👋 你好!我是 AI 解题助手。
我已阅读了这problems题,可以帮你points析思路、提供Code示例。
🔓 完全Free · 无需消耗 Token