### Re: 11565 - Simple Equations

Posted:

**Sun Feb 15, 2009 9:53 pm**I am not sure what it means O(N) and O(N^2)

(in the previous post) because this problem has

three input parameters - A,B,C and no N there

(except the count of the test cases).

Anyway. Here is the correct

output for the input posted above.

INPUT
OUTPUT

(in the previous post) because this problem has

three input parameters - A,B,C and no N there

(except the count of the test cases).

Anyway. Here is the correct

output for the input posted above.

INPUT

Code: Select all

```
29
3 1 3
3 3 3
1 8 21
17 108 121
10 0 100
47 240 1637
18 0 162
23 385 195
37 1664 489
17 0 145
44 544 1224
42 0 1394
24 0 386
12 24 74
8 0 40
55 629 1659
60 1410 2318
34 836 498
46 980 1290
19 56 213
11 48 41
57 3468 1481
52 2210 1350
8 0 130
0 30 38
0 30 38
1 4 9
5 0 13
3 0 5
```

Code: Select all

```
No solution.
No solution.
-2 -1 4
2 6 9
No solution.
1 6 40
No solution.
5 7 11
8 13 16
0 8 9
2 8 34
0 5 37
0 5 19
1 3 8
0 2 6
1 17 37
3 10 47
4 11 19
4 7 35
1 4 14
No solution.
6 17 34
5 13 34
-3 0 11
-3 -2 5
-3 -2 5
No solution.
0 2 3
0 1 2
```