#R3A. Old Florr

Old Florr

题目背景

In Old Florr, where dreams reside,
A world of pixels, where mobs stride.
Through enchanted gardens, we roam,
In this game, we find our home.

With petal in hand and armor gleaming,
We embark on quests, ever dreaming.
From treacherous dungeons to towering spires,
We face challenges, fueled by our desires.

In Old Florr, friendships are forged,
Through battles fought and victories gorged.
Together we stand, united and strong,
In this virtual realm, where we belong.

The sun rises and sets, casting its light,
On a world where magic takes flight.
Each pixel holds a story untold,
In Old Florr, legends unfold.

But beyond the pixels, the game we play,
Lies a realm where memories stay.
For Old Florr, a place forever cherished,
Where our spirits thrive, never perished.

So let us venture, side by side,
In Old Florr, where mobs reside.
For in this game, we find our worth,
Unleashing our passions, on this digital earth.

--- ChatGPT with editing

注:本诗对解题没有帮助

请注意本题特殊的 Time Limit (2.5s)Memory Limit (32M)!

题目描述

(32,4)
(32,1)
(1,2)
(7,2)

(7,1)
(13,6)
(13,1)
(25,4)
(25,8)
(25,5)

(7,2)
(3,4)

以上是 TLE->AC 秘诀


P

Unique Square
Common Heavy
Epic Rice

$\color{white}{\text{本题原题即为上面所有花瓣名在 Old Florr 中的 ID 连接起来}}$
$\color{white}{\text{ID 可以在这里看:florrio.fandom.com/zh/wiki/旧/花瓣}}$ $\color{white}{\text{方法:www.luogu.com.cn/paste/pkx401t9}}$

输入格式

T
a1 b1 c1
a2 b2 c2
...
aT bT cT
  • 1T51 \le T \le 5

  • 1ai1051 \le a_i \le 10^5

  • 1bi5×1051 \le b_i \le 5 \times 10^5

  • 0ciUNSIGNED_INT_MAX0 \le c_i \le \text{UNSIGNED\_INT\_MAX}

输出格式

(1,1) (1,2) ... (1, b1)
(2,1) (2,2) ... (2, b2)
...
(T,1) (T,2) ... (T, bT)

样例 #1

样例输入 #1

2
? 3 ?
? ? ?
// 这里的 ? 只是为了遮盖,数据中并没有这样的情况
// 每一个 ? 对应一个非负整数

样例输出 #1

0 ? 0
? ? ? ? ?
// 这里的 ? 只是为了遮盖,数据中并没有这样的情况
// 每一个 ? 对应一个非负整数

提示

本题 I/O 量较大,请注意 I/O 优化。

大样例(可用于测时间、空间)。

测时间:

int main() {
#ifndef ONLINE_JUDGE
  clock_t st = clock();
#endif
  // your code
#ifndef ONLINE_JUDGE
  clock_t ed = clock();
  cerr << "Time Used: " << ed - st << "ms" << endl;
#endif
}

测空间:

#ifndef ONLINE_JUDGE
bool *st;
#endif
// your vars definitions
#ifndef ONLINE_JUDGE
bool *ed;
#endif

int main() {
#ifndef ONLINE_JUDGE
  cerr << "Memory Used: " << &ed - &st << "B" << endl;
#endif
  // your code
}

或者直接扔洛谷 IDE 里测。