#P2694. 接金币

接金币

Description

In a 2D coordinate system, there are nn coins, numbered 0n10\sim n-1. Initially, the ii-th coin is at (xi,yi)(x_i,y_i). All coins fall vertically downward by 11 unit of height per second. For example, if a coin is currently at (x,y)(x,y), then after tt seconds its position will be (x,yt)(x,y-t). Initially, FJ is at (0,0)(0,0). FJ can move left or right by 11 unit per second, and FJ may also stay still. If at some moment a coin’s position coincides with FJ’s position, then FJ can catch that coin. Determine whether FJ can catch all the coins. If yes, output Abletocatch\texttt{Abletocatch}, otherwise output Notabletocatch\texttt{Notabletocatch}.

Input Format

This problem has gg groups of testdata.

The first line contains an integer gg, indicating there are gg groups of testdata.

For each group of testdata, the format is as follows:

  • The first line contains an integer nn.
  • The next nn lines each contain two integers, representing xi,yix_i,y_i for the ii-th coin.

Output Format

Output gg lines. For each group, output Abletocatch\texttt{Abletocatch} or Notabletocatch\texttt{Notabletocatch}.

5
3
-1 1
1 3
0 4
1
-3 2
3
-1 1
1 2
0 4
3
0 9
-1 1
1 3
8
70 141
-108 299
52 402
-70 280
84 28
-29 363
66 427
-33 232

Abletocatch
Notabletocatch
Notabletocatch
Abletocatch
Notabletocatch

Hint

For all testdata, 1g51 \le g \le 5, 1n501 \le n \le 50, 103xi103-10^3 \le x_i \le 10^3, 0yi1030 \le y_i \le 10^3.

Translated by ChatGPT 5