QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#450688#6827. Gua!PetroTarnavskyi#AC ✓1ms3728kbC++20701b2024-06-22 17:04:012024-06-22 17:04:02

Judging History

你现在查看的是最新测评结果

  • [2024-06-22 17:04:02]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3728kb
  • [2024-06-22 17:04:01]
  • 提交

answer

#include <bits/stdc++.h>

using namespace std;

#define FOR(i, a, b) for(int i = (a); i < (b); i++)
#define RFOR(i, a, b) for(int i = (a) - 1; i >= (b); i--)
#define SZ(a) int(a.size())
#define ALL(a) a.begin(), a.end()
#define PB push_back
#define MP make_pair
#define F first
#define S second

typedef long long LL;
typedef vector<int> VI;
typedef pair<int, int> PII;
typedef double db;

bool gua()
{
	int b, r, d, s;
	cin >> b >> r >> d >> s;
	if(r == 0)
		return d > 0;
	
	return (s * r / 60 + 1) * b < d;
}

int main()
{
	ios::sync_with_stdio(0);
	cin.tie(0);
	
	int t;
	cin >> t;
	while(t--)
	{
		cout << (gua() ? "gua!" : "ok") << "\n";
	}
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3636kb

input:

7
38 156 152 1
280 25 280 0
99 51 9 10
0 0 1 1
99 0 1 1
11 1080 209 1
11 1080 210 1

output:

gua!
ok
ok
gua!
gua!
ok
gua!

result:

ok 7 tokens

Test #2:

score: 0
Accepted
time: 0ms
memory: 3592kb

input:

16
2000 2000 2000 2000
0 2000 2000 2000
2000 0 2000 2000
0 0 2000 2000
2000 2000 0 2000
0 2000 0 2000
2000 0 0 2000
0 0 0 2000
2000 2000 2000 0
0 2000 2000 0
2000 0 2000 0
0 0 2000 0
2000 2000 0 0
0 2000 0 0
2000 0 0 0
0 0 0 0

output:

ok
gua!
gua!
gua!
ok
ok
ok
ok
ok
gua!
gua!
gua!
ok
ok
ok
ok

result:

ok 16 tokens

Test #3:

score: 0
Accepted
time: 1ms
memory: 3644kb

input:

1000
5 60 10 0
5 60 10 1
5 60 10 2
5 60 10 3
5 60 10 4
5 60 10 5
5 60 10 6
5 60 10 7
5 60 10 8
5 60 10 9
5 60 11 0
5 60 11 1
5 60 11 2
5 60 11 3
5 60 11 4
5 60 11 5
5 60 11 6
5 60 11 7
5 60 11 8
5 60 11 9
5 60 12 0
5 60 12 1
5 60 12 2
5 60 12 3
5 60 12 4
5 60 12 5
5 60 12 6
5 60 12 7
5 60 12 8
5 60 ...

output:

gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
gua!
ok
ok
ok
ok...

result:

ok 1000 tokens

Test #4:

score: 0
Accepted
time: 1ms
memory: 3728kb

input:

1000
10 61 20 0
10 61 20 1
10 61 20 2
10 61 20 3
10 61 20 4
10 61 20 5
10 61 20 6
10 61 20 7
10 61 20 8
10 61 20 9
10 61 21 0
10 61 21 1
10 61 21 2
10 61 21 3
10 61 21 4
10 61 21 5
10 61 21 6
10 61 21 7
10 61 21 8
10 61 21 9
10 61 22 0
10 61 22 1
10 61 22 2
10 61 22 3
10 61 22 4
10 61 22 5
10 61 22 ...

output:

gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok...

result:

ok 1000 tokens

Test #5:

score: 0
Accepted
time: 0ms
memory: 3596kb

input:

1000
15 62 30 0
15 62 30 1
15 62 30 2
15 62 30 3
15 62 30 4
15 62 30 5
15 62 30 6
15 62 30 7
15 62 30 8
15 62 30 9
15 62 31 0
15 62 31 1
15 62 31 2
15 62 31 3
15 62 31 4
15 62 31 5
15 62 31 6
15 62 31 7
15 62 31 8
15 62 31 9
15 62 32 0
15 62 32 1
15 62 32 2
15 62 32 3
15 62 32 4
15 62 32 5
15 62 32 ...

output:

gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok...

result:

ok 1000 tokens

Test #6:

score: 0
Accepted
time: 1ms
memory: 3596kb

input:

1000
20 63 40 0
20 63 40 1
20 63 40 2
20 63 40 3
20 63 40 4
20 63 40 5
20 63 40 6
20 63 40 7
20 63 40 8
20 63 40 9
20 63 41 0
20 63 41 1
20 63 41 2
20 63 41 3
20 63 41 4
20 63 41 5
20 63 41 6
20 63 41 7
20 63 41 8
20 63 41 9
20 63 42 0
20 63 42 1
20 63 42 2
20 63 42 3
20 63 42 4
20 63 42 5
20 63 42 ...

output:

gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok...

result:

ok 1000 tokens

Test #7:

score: 0
Accepted
time: 1ms
memory: 3668kb

input:

1000
25 64 50 0
25 64 50 1
25 64 50 2
25 64 50 3
25 64 50 4
25 64 50 5
25 64 50 6
25 64 50 7
25 64 50 8
25 64 50 9
25 64 51 0
25 64 51 1
25 64 51 2
25 64 51 3
25 64 51 4
25 64 51 5
25 64 51 6
25 64 51 7
25 64 51 8
25 64 51 9
25 64 52 0
25 64 52 1
25 64 52 2
25 64 52 3
25 64 52 4
25 64 52 5
25 64 52 ...

output:

gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok...

result:

ok 1000 tokens

Test #8:

score: 0
Accepted
time: 1ms
memory: 3600kb

input:

1000
30 65 60 0
30 65 60 1
30 65 60 2
30 65 60 3
30 65 60 4
30 65 60 5
30 65 60 6
30 65 60 7
30 65 60 8
30 65 60 9
30 65 61 0
30 65 61 1
30 65 61 2
30 65 61 3
30 65 61 4
30 65 61 5
30 65 61 6
30 65 61 7
30 65 61 8
30 65 61 9
30 65 62 0
30 65 62 1
30 65 62 2
30 65 62 3
30 65 62 4
30 65 62 5
30 65 62 ...

output:

gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok...

result:

ok 1000 tokens

Test #9:

score: 0
Accepted
time: 0ms
memory: 3672kb

input:

1000
35 66 70 0
35 66 70 1
35 66 70 2
35 66 70 3
35 66 70 4
35 66 70 5
35 66 70 6
35 66 70 7
35 66 70 8
35 66 70 9
35 66 71 0
35 66 71 1
35 66 71 2
35 66 71 3
35 66 71 4
35 66 71 5
35 66 71 6
35 66 71 7
35 66 71 8
35 66 71 9
35 66 72 0
35 66 72 1
35 66 72 2
35 66 72 3
35 66 72 4
35 66 72 5
35 66 72 ...

output:

gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok...

result:

ok 1000 tokens

Test #10:

score: 0
Accepted
time: 1ms
memory: 3724kb

input:

1000
40 67 80 0
40 67 80 1
40 67 80 2
40 67 80 3
40 67 80 4
40 67 80 5
40 67 80 6
40 67 80 7
40 67 80 8
40 67 80 9
40 67 81 0
40 67 81 1
40 67 81 2
40 67 81 3
40 67 81 4
40 67 81 5
40 67 81 6
40 67 81 7
40 67 81 8
40 67 81 9
40 67 82 0
40 67 82 1
40 67 82 2
40 67 82 3
40 67 82 4
40 67 82 5
40 67 82 ...

output:

gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok...

result:

ok 1000 tokens

Test #11:

score: 0
Accepted
time: 1ms
memory: 3652kb

input:

1000
45 68 90 0
45 68 90 1
45 68 90 2
45 68 90 3
45 68 90 4
45 68 90 5
45 68 90 6
45 68 90 7
45 68 90 8
45 68 90 9
45 68 91 0
45 68 91 1
45 68 91 2
45 68 91 3
45 68 91 4
45 68 91 5
45 68 91 6
45 68 91 7
45 68 91 8
45 68 91 9
45 68 92 0
45 68 92 1
45 68 92 2
45 68 92 3
45 68 92 4
45 68 92 5
45 68 92 ...

output:

gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok...

result:

ok 1000 tokens

Test #12:

score: 0
Accepted
time: 1ms
memory: 3596kb

input:

1000
30 1807 46 202
212 88 1415 44
5 67 446 1
1126 144 11 55
715 47 501 15
83 95 31 79
69 46 1230 717
1845 35 78 95
1506 1648 19 1674
24 88 1093 1576
1530 387 85 1824
46 24 1718 12
5 910 42 50
852 71 770 684
89 54 1272 82
83 1541 42 10
17 448 1868 25
73 17 27 43
64 22 11 1327
41 68 65 65
48 46 40 79...

output:

ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
...

result:

ok 1000 tokens

Test #13:

score: 0
Accepted
time: 1ms
memory: 3720kb

input:

1000
1310 418 260 98
616 505 25 456
77 875 67 1778
26 445 60 584
31 17 1421 82
720 206 510 16
50 392 28 91
78 66 14 3
14 925 85 602
36 1583 643 195
1905 36 3 512
73 1199 66 1342
1343 229 358 8
88 895 0 1900
1295 217 907 1454
29 96 90 1614
10 94 51 1941
40 24 1268 112
65 49 1310 1505
60 169 88 72
98 ...

output:

ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
...

result:

ok 1000 tokens

Test #14:

score: 0
Accepted
time: 1ms
memory: 3728kb

input:

1000
660 37 920 697
96 79 33 333
52 1090 80 135
60 1530 192 11
43 1370 7 59
17 68 11 99
1386 936 94 36
1425 38 562 39
100 609 38 1751
93 83 1765 36
72 1571 36 55
64 148 86 61
509 57 90 15
1053 4 26 1696
76 44 58 24
58 92 51 46
74 976 98 96
78 35 29 775
27 79 53 1086
50 10 22 58
1020 1262 12 4
1959 1...

output:

ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok...

result:

ok 1000 tokens

Test #15:

score: 0
Accepted
time: 1ms
memory: 3592kb

input:

1000
6 22 21 127
78 25 791 594
1616 91 45 891
62 36 1270 324
1745 10 883 50
2 28 20 149
1708 1 383 11
1956 1724 159 690
516 37 1020 70
1034 507 1328 714
35 860 601 61
45 1807 883 1306
17 59 1425 61
1421 45 914 1011
1695 55 2 1847
34 464 2 31
507 6 82 72
67 41 1753 1615
1471 45 1203 178
973 1325 1450...

output:

ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok...

result:

ok 1000 tokens

Test #16:

score: 0
Accepted
time: 1ms
memory: 3592kb

input:

1000
10 712 219 25
1378 1 9 72
1278 40 797 11
12 652 258 538
815 778 29 1903
79 93 37 72
197 1860 3 75
398 442 71 83
36 58 3 1521
719 1615 1160 68
471 33 630 1916
10 3 540 721
13 61 74 10
704 179 1963 6
689 1142 927 351
1404 949 9 70
1425 1507 1401 4
1990 126 32 87
217 9 289 99
1883 42 10 80
14 16 1...

output:

ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
...

result:

ok 1000 tokens

Test #17:

score: 0
Accepted
time: 1ms
memory: 3728kb

input:

1000
14 1207 83 64
81 13 96 64
0 65 896 1419
72 8 952 317
74 1674 915 85
15 1466 301 200
13 1031 434 78
25 2 1074 1534
1532 67 77 1579
100 302 7 161
1461 94 218 1332
60 916 747 471
21 605 15 28
1155 1835 1791 1136
1674 11 21 352
49 1184 7 48
52 65 1977 1251
70 671 72 48
69 1701 51 56
51 1069 472 17
...

output:

ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
...

result:

ok 1000 tokens

Test #18:

score: 0
Accepted
time: 1ms
memory: 3596kb

input:

1000
438 98 928 49
68 862 95 69
1378 1737 45 985
846 1268 625 30
11 1392 1805 1555
55 198 180 23
75 886 88 45
530 1491 98 12
1627 53 8 1096
61 12 69 65
899 86 454 139
72 1539 90 35
70 510 1460 14
731 1267 3 98
21 1292 81 26
61 1329 1564 458
884 39 95 907
493 1665 1922 123
489 23 51 1849
1585 610 23 ...

output:

ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
gua!
ok
ok...

result:

ok 1000 tokens

Test #19:

score: 0
Accepted
time: 1ms
memory: 3656kb

input:

1000
53 377 99 208
222 3 25 19
64 42 67 940
573 656 35 89
1621 277 1189 67
53 80 80 782
534 8 73 1402
1103 39 39 2
60 0 36 1141
19 75 1745 99
64 1626 31 30
978 3 1871 1300
967 484 768 1685
329 642 25 1978
1114 1 63 33
19 59 1507 1301
980 1246 98 81
1960 1223 745 1711
1162 76 44 1169
13 60 54 93
24 8...

output:

ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
...

result:

ok 1000 tokens

Test #20:

score: 0
Accepted
time: 1ms
memory: 3672kb

input:

1000
30 6 5 1393
36 627 427 1466
36 1490 78 1767
772 1441 302 83
878 1387 919 52
25 36 1538 11
1567 74 241 39
391 1 1163 224
56 99 1241 57
32 84 69 48
20 1133 1395 31
79 42 63 1218
76 24 1599 1376
35 71 694 819
1186 1506 1947 0
83 44 988 12
752 1965 721 42
1010 38 676 77
20 25 33 76
7 4 73 229
262 1...

output:

ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok...

result:

ok 1000 tokens

Test #21:

score: 0
Accepted
time: 1ms
memory: 3660kb

input:

1000
746 1695 1906 24
68 1908 86 1737
208 52 1164 240
1219 83 695 779
14 48 997 60
83 3 87 9
981 430 1463 18
1506 32 54 1186
63 57 396 31
29 1481 1045 83
12 1861 23 44
498 71 196 91
1790 10 1184 67
10 180 73 90
29 704 25 47
63 161 56 28
1261 1925 14 1642
840 87 311 72
11 11 44 1014
21 851 15 42
40 2...

output:

ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
o...

result:

ok 1000 tokens

Test #22:

score: 0
Accepted
time: 1ms
memory: 3604kb

input:

1000
363 88 89 878
489 907 15 1510
94 88 1792 24
793 82 1616 73
75 245 98 8
70 531 584 18
753 1347 17 491
82 711 23 19
66 85 1342 113
29 1 448 5
421 743 497 353
1520 310 127 1100
1240 28 169 7
43 1802 86 36
36 1070 30 11
34 740 86 94
745 1632 180 36
1681 12 37 37
269 39 768 52
55 5 169 51
873 59 98 ...

output:

ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
o...

result:

ok 1000 tokens

Test #23:

score: 0
Accepted
time: 1ms
memory: 3720kb

input:

1000
59 80 28 23
139 485 1892 829
252 28 39 26
22 979 96 18
48 67 96 1750
1412 50 38 61
1084 68 1091 77
99 77 3 49
12 1617 895 16
72 1107 7 965
1468 98 409 1286
1767 19 67 1512
36 1421 141 324
45 1692 50 1683
11 1327 24 4
81 1977 1790 12
84 594 3 372
43 93 1608 338
49 50 78 47
81 45 1787 336
10 1439...

output:

ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
gua!
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
gua!
ok
ok
gua!
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
gu...

result:

ok 1000 tokens

Test #24:

score: 0
Accepted
time: 1ms
memory: 3600kb

input:

1000
10 1371 38 466
12 35 14 57
218 70 851 925
54 770 70 96
1135 1660 904 88
1544 1941 1506 74
8 1520 7 1882
94 1283 934 1225
459 78 931 121
37 1304 797 70
1127 1249 108 64
1797 71 4 93
407 1663 5 549
1264 7 794 52
64 66 54 70
34 64 13 371
570 18 26 1462
777 1250 414 7
61 54 1718 78
1311 17 1380 527...

output:

ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
...

result:

ok 1000 tokens

Test #25:

score: 0
Accepted
time: 1ms
memory: 3664kb

input:

1000
1953 63 1492 718
74 45 18 340
99 46 86 1273
1719 311 77 239
754 1820 26 556
1934 441 463 15
727 1088 258 19
70 90 1190 1934
213 6 29 289
2 1796 79 1338
1025 25 88 97
1124 1918 1797 65
1191 48 37 18
946 30 52 516
64 1443 1502 483
1687 92 1435 1237
75 17 67 740
77 37 100 74
1101 9 65 833
1379 26 ...

output:

ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
gua!
ok
ok
ok
o...

result:

ok 1000 tokens

Test #26:

score: 0
Accepted
time: 1ms
memory: 3592kb

input:

1000
1711 91 1420 16
1766 1352 75 39
1360 439 58 0
218 14 15 1602
98 450 80 1781
0 70 107 175
1179 1944 42 896
1003 1746 28 98
869 887 1906 1843
73 1668 94 163
1165 1129 68 36
1229 28 1608 63
1957 238 15 37
1690 69 33 812
932 1762 1841 72
374 53 1013 40
462 64 20 1220
1557 63 1833 788
79 1484 385 40...

output:

ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok...

result:

ok 1000 tokens

Test #27:

score: 0
Accepted
time: 1ms
memory: 3724kb

input:

1000
66 292 56 13
583 28 1448 795
55 1846 90 174
39 1620 1676 19
49 1644 1848 1033
42 8 20 84
1733 35 48 625
10 774 65 1677
1449 0 323 1321
922 61 23 97
716 95 769 1256
72 62 73 1591
6 1178 256 48
284 76 89 1965
324 43 53 59
27 1038 2 96
23 85 73 9
1615 1504 1798 54
42 194 454 1568
254 1254 371 9
8 ...

output:

ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
...

result:

ok 1000 tokens

Test #28:

score: 0
Accepted
time: 1ms
memory: 3652kb

input:

1000
483 1183 1204 94
78 32 7 59
43 409 983 23
38 1178 38 326
314 362 1489 3
97 97 62 442
80 1855 92 33
169 1219 1119 935
54 21 47 41
51 176 1458 82
1580 66 180 5
32 65 90 1730
111 68 14 889
307 71 1408 1909
29 22 79 1934
83 44 1393 9
1161 72 1242 27
25 135 1347 27
1247 15 1482 538
3 653 9 66
97 564...

output:

ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
o...

result:

ok 1000 tokens

Test #29:

score: 0
Accepted
time: 1ms
memory: 3684kb

input:

1000
1337 68 50 1
208 1749 1520 95
1600 991 72 1483
1256 1693 378 56
73 325 100 38
98 16 1677 467
82 68 1372 1094
24 90 1029 35
43 1686 1364 67
85 58 285 1655
286 1588 1818 67
782 1547 58 1037
1202 1961 82 1034
98 96 23 1219
315 1622 44 53
86 1 18 1592
67 39 1457 79
1260 84 46 33
1282 84 29 93
48 10...

output:

ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok...

result:

ok 1000 tokens

Test #30:

score: 0
Accepted
time: 1ms
memory: 3720kb

input:

1000
19 1722 1806 464
1875 12 100 168
88 163 50 100
357 70 61 42
295 74 1765 1946
389 84 973 8
1738 99 999 734
988 1149 90 639
1424 1586 175 24
76 33 40 928
1906 1974 1009 1420
1649 1427 74 43
812 93 21 73
97 44 1532 1
492 59 68 716
1 835 867 31
29 306 64 1404
91 58 47 33
1301 46 1297 49
16 333 882 ...

output:

ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
gua!
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok...

result:

ok 1000 tokens

Test #31:

score: 0
Accepted
time: 1ms
memory: 3664kb

input:

1000
827 4 41 96
1738 887 69 84
1655 620 350 70
62 7 1791 288
1716 1845 19 43
38 40 98 640
1122 82 56 38
50 92 555 25
602 7 45 332
60 94 16 8
67 866 1768 32
79 85 71 447
470 58 1643 26
638 686 14 68
0 9 660 1738
166 365 380 0
11 73 93 69
1936 74 3 72
50 409 91 949
75 58 1520 933
287 741 1042 89
56 9...

output:

ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
o...

result:

ok 1000 tokens

Test #32:

score: 0
Accepted
time: 0ms
memory: 3664kb

input:

1000
54 22 79 30
80 17 1627 1574
489 57 50 54
1925 65 366 14
82 90 953 154
11 1111 53 39
590 1939 26 316
67 34 797 1210
16 72 568 1974
304 1818 60 1945
67 44 1464 1983
1 99 30 1933
69 62 22 60
32 170 90 17
2 818 1070 69
91 31 64 1660
979 264 1601 1
34 1579 7 59
444 1895 1765 94
0 85 18 414
67 19 646...

output:

ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
gua!...

result:

ok 1000 tokens

Test #33:

score: 0
Accepted
time: 1ms
memory: 3676kb

input:

1000
246 42 42 628
4 52 49 83
74 53 13 1052
1791 29 58 733
412 54 1382 100
60 7 1709 91
8 1639 130 46
52 88 1793 1357
47 83 327 457
34 769 34 29
723 93 44 71
34 41 33 254
1454 571 394 743
81 1676 1556 100
37 1936 82 1653
101 15 23 20
75 1180 34 7
76 1552 358 1858
73 93 72 1132
87 57 938 85
78 319 6 ...

output:

ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua...

result:

ok 1000 tokens

Test #34:

score: 0
Accepted
time: 1ms
memory: 3640kb

input:

1000
189 67 1579 337
89 1091 62 96
292 1214 629 88
94 325 59 690
721 72 58 36
1851 58 1127 1014
40 1 841 341
49 26 46 27
1604 195 931 1458
54 0 29 1790
866 44 40 1498
40 125 42 645
1127 70 1962 25
124 61 1994 928
91 1717 623 1099
10 953 1930 27
83 1681 54 814
1907 1704 1689 438
13 294 864 151
971 18...

output:

ok
ok
ok
ok
ok
ok
gua!
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
...

result:

ok 1000 tokens

Test #35:

score: 0
Accepted
time: 1ms
memory: 3600kb

input:

1000
75 91 29 84
96 34 1026 730
806 14 78 1194
50 96 26 88
69 1454 882 78
1742 1634 703 64
77 1164 1697 83
190 253 1057 770
85 45 1890 363
803 870 1105 59
1482 30 100 27
1967 1582 841 1811
43 1118 45 17
1327 1764 78 45
661 50 33 11
24 0 12 1940
22 28 776 839
19 89 1686 69
1526 73 432 69
1325 598 56 ...

output:

ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok...

result:

ok 1000 tokens

Test #36:

score: 0
Accepted
time: 1ms
memory: 3648kb

input:

1000
16 1326 75 1984
42 1189 40 1913
978 24 805 1
1754 34 44 19
338 85 22 91
85 89 80 59
40 24 12 36
1747 1105 42 1503
89 426 1438 668
1188 40 1599 81
66 545 1471 1060
687 691 66 99
39 359 26 87
790 12 50 884
2 77 144 28
1947 9 9 685
1526 70 33 32
35 1471 93 1840
57 52 77 21
471 97 434 1346
1174 112...

output:

ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
...

result:

ok 1000 tokens

Test #37:

score: 0
Accepted
time: 1ms
memory: 3672kb

input:

1000
90 46 1207 59
1962 413 84 94
98 14 98 58
1156 98 51 1522
85 95 43 67
1929 1893 1139 1407
52 518 82 1463
28 121 1807 89
89 57 58 21
1096 79 46 1153
97 50 1822 744
56 84 70 778
218 94 1974 240
274 44 231 291
77 43 97 74
1090 467 89 34
222 72 1705 821
557 63 725 19
26 359 101 14
1308 61 87 4
97 73...

output:

ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
...

result:

ok 1000 tokens

Test #38:

score: 0
Accepted
time: 1ms
memory: 3660kb

input:

1000
1204 79 1746 11
637 73 612 36
1592 713 449 99
737 1111 42 608
11 63 81 1788
56 118 206 346
228 13 23 34
1065 1496 18 62
1041 449 1957 828
1 1672 21 52
628 1470 50 1325
814 60 255 1619
1711 54 823 89
493 52 3 56
93 112 1133 80
329 139 1670 1963
1445 3 59 1333
56 1845 1966 9
656 34 55 58
29 1493 ...

output:

ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
gua!
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok...

result:

ok 1000 tokens

Test #39:

score: 0
Accepted
time: 1ms
memory: 3592kb

input:

1000
31 85 52 2000
28 39 36 30
24 534 539 20
713 77 100 39
65 1728 1147 62
1024 1950 59 11
1645 955 1412 749
9 44 49 24
499 50 60 2
62 1553 96 46
27 1497 1253 1687
51 1979 33 52
1338 51 1416 1176
37 89 1119 56
17 843 1869 1053
24 1442 1993 10
32 22 39 1231
1564 1817 30 941
704 14 304 414
763 36 392 ...

output:

ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
o...

result:

ok 1000 tokens

Test #40:

score: 0
Accepted
time: 1ms
memory: 3676kb

input:

1000
1682 1832 582 1308
75 1996 1764 1641
932 1505 28 50
89 57 1347 87
480 1721 67 57
30 863 41 100
683 56 77 1074
59 1652 26 1515
38 45 69 84
66 88 21 888
99 441 1027 11
3 32 229 29
1371 1826 1735 510
42 1985 1762 742
47 34 74 37
1249 19 1469 711
379 29 75 1442
1084 98 8 4
67 1159 1639 83
1708 13 2...

output:

ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
ok
gua!
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
gua!
ok
ok
ok
...

result:

ok 1000 tokens

Test #41:

score: 0
Accepted
time: 0ms
memory: 3664kb

input:

1
0 0 0 0

output:

ok

result:

ok "ok"