Task: | L-Trominos |
Sender: | Game of Nolife |
Submission time: | 2019-05-25 14:10:13 +0300 |
Language: | C++ |
Status: | READY |
Result: | ACCEPTED |
test | verdict | time | |
---|---|---|---|
#1 | ACCEPTED | 0.02 s | details |
#2 | ACCEPTED | 0.02 s | details |
#3 | ACCEPTED | 0.01 s | details |
#4 | ACCEPTED | 0.03 s | details |
#5 | ACCEPTED | 0.03 s | details |
#6 | ACCEPTED | 0.03 s | details |
#7 | ACCEPTED | 0.01 s | details |
#8 | ACCEPTED | 0.02 s | details |
#9 | ACCEPTED | 0.02 s | details |
#10 | ACCEPTED | 0.02 s | details |
#11 | ACCEPTED | 0.03 s | details |
#12 | ACCEPTED | 0.03 s | details |
#13 | ACCEPTED | 0.02 s | details |
#14 | ACCEPTED | 0.02 s | details |
#15 | ACCEPTED | 0.03 s | details |
#16 | ACCEPTED | 0.02 s | details |
#17 | ACCEPTED | 0.01 s | details |
#18 | ACCEPTED | 0.03 s | details |
#19 | ACCEPTED | 0.03 s | details |
#20 | ACCEPTED | 0.01 s | details |
#21 | ACCEPTED | 0.02 s | details |
#22 | ACCEPTED | 0.04 s | details |
#23 | ACCEPTED | 0.01 s | details |
#24 | ACCEPTED | 0.02 s | details |
#25 | ACCEPTED | 0.02 s | details |
#26 | ACCEPTED | 0.02 s | details |
#27 | ACCEPTED | 0.02 s | details |
#28 | ACCEPTED | 0.02 s | details |
#29 | ACCEPTED | 0.03 s | details |
#30 | ACCEPTED | 0.03 s | details |
#31 | ACCEPTED | 0.02 s | details |
#32 | ACCEPTED | 0.01 s | details |
#33 | ACCEPTED | 0.03 s | details |
#34 | ACCEPTED | 0.02 s | details |
#35 | ACCEPTED | 0.02 s | details |
#36 | ACCEPTED | 0.01 s | details |
#37 | ACCEPTED | 0.02 s | details |
#38 | ACCEPTED | 0.02 s | details |
#39 | ACCEPTED | 0.01 s | details |
#40 | ACCEPTED | 0.01 s | details |
#41 | ACCEPTED | 0.02 s | details |
#42 | ACCEPTED | 0.02 s | details |
#43 | ACCEPTED | 0.02 s | details |
#44 | ACCEPTED | 0.02 s | details |
#45 | ACCEPTED | 0.02 s | details |
#46 | ACCEPTED | 0.03 s | details |
#47 | ACCEPTED | 0.02 s | details |
#48 | ACCEPTED | 0.02 s | details |
#49 | ACCEPTED | 0.01 s | details |
#50 | ACCEPTED | 0.02 s | details |
#51 | ACCEPTED | 0.01 s | details |
#52 | ACCEPTED | 0.01 s | details |
#53 | ACCEPTED | 0.01 s | details |
#54 | ACCEPTED | 0.03 s | details |
#55 | ACCEPTED | 0.03 s | details |
#56 | ACCEPTED | 0.02 s | details |
#57 | ACCEPTED | 0.02 s | details |
#58 | ACCEPTED | 0.02 s | details |
#59 | ACCEPTED | 0.01 s | details |
#60 | ACCEPTED | 0.02 s | details |
#61 | ACCEPTED | 0.02 s | details |
#62 | ACCEPTED | 0.03 s | details |
#63 | ACCEPTED | 0.02 s | details |
#64 | ACCEPTED | 0.02 s | details |
#65 | ACCEPTED | 0.02 s | details |
#66 | ACCEPTED | 0.02 s | details |
#67 | ACCEPTED | 0.01 s | details |
#68 | ACCEPTED | 0.03 s | details |
#69 | ACCEPTED | 0.02 s | details |
#70 | ACCEPTED | 0.03 s | details |
#71 | ACCEPTED | 0.01 s | details |
#72 | ACCEPTED | 0.03 s | details |
#73 | ACCEPTED | 0.02 s | details |
#74 | ACCEPTED | 0.02 s | details |
#75 | ACCEPTED | 0.01 s | details |
#76 | ACCEPTED | 0.02 s | details |
#77 | ACCEPTED | 0.02 s | details |
#78 | ACCEPTED | 0.01 s | details |
#79 | ACCEPTED | 0.02 s | details |
#80 | ACCEPTED | 0.02 s | details |
#81 | ACCEPTED | 0.03 s | details |
#82 | ACCEPTED | 0.02 s | details |
#83 | ACCEPTED | 0.02 s | details |
#84 | ACCEPTED | 0.02 s | details |
#85 | ACCEPTED | 0.03 s | details |
#86 | ACCEPTED | 0.03 s | details |
#87 | ACCEPTED | 0.01 s | details |
#88 | ACCEPTED | 0.02 s | details |
#89 | ACCEPTED | 0.02 s | details |
#90 | ACCEPTED | 0.02 s | details |
#91 | ACCEPTED | 0.03 s | details |
Code
#include <bits/stdc++.h> #define F first #define S second #define X real() #define Y imag() using namespace std; typedef long long ll; typedef long double ld; char tab [111][111]; char cols [5][5]; void set_colour(int x, int y, int dir) { char col = cols[x%4][y%4]; if (dir == 0) { tab[x][y] = col; tab[x - 1][y] = col; tab[x][y + 1] = col; } else if (dir == 1) { tab[x][y] = col; tab[x - 1][y] = col; tab[x][y - 1] = col; } else if (dir == 2) { tab[x][y] = col; tab[x + 1][y] = col; tab[x][y - 1] = col; } else if (dir == 3) { tab[x][y] = col; tab[x + 1][y] = col; tab[x][y + 1] = col; } } void solve(int n1, int m1, int n2, int m2) { //cout << n1 << " " << m1 << " " << n2 << " " << m2 << "\n"; if (n1 == 2) { for (int i = 0; i < m1/3; i++) { set_colour(n2, m2 + 3*i, 3); set_colour(n2 + 1, m2 + 3*i + 2, 1); } } else if (m1 == 2) { for (int i = 0; i < n1/3; i++) { set_colour(n2 + 3*i, m2, 3); set_colour(n2 + 3*i + 2, m2 + 1, 1); } } else if (n1 == 3) { for (int i = 0; i < m1/2; i++) { set_colour(n2, m2 + 2*i, 3); set_colour(n2 + 2, m2 + 2*i + 1, 1); } } else if (m1 == 3) { for (int i = 0; i < n1/2; i++) { set_colour(n2 + 2*i, m2, 3); set_colour(n2 + 2*i + 1, m2 + 2, 1); } } else if (n1 == 9) { set_colour(n2, m2, 3); set_colour(n2 + 1, m2 + 2, 0); set_colour(n2, m2 + 4, 2); set_colour(n2 + 2, m2 + 1, 1); set_colour(n2 + 3, m2 + 2, 0); set_colour(n2 + 2, m2 + 4, 2); set_colour(n2 + 3, m2, 3); set_colour(n2 + 4, m2 + 2, 2); set_colour(n2 + 4, m2 + 4, 2); set_colour(n2 + 5, m2, 3); set_colour(n2 + 6, m2 + 1, 3); set_colour(n2 + 6, m2 + 3, 0); set_colour(n2 + 8, m2, 0); set_colour(n2 + 7, m2 + 2, 3); set_colour(n2 + 8, m2 + 4, 1); } else if (m1 == 9) { set_colour(n2, m2, 3); set_colour(n2 + 2, m2 + 1, 2); set_colour(n2 + 4, m2, 0); set_colour(n2 + 1, m2 + 2, 1); set_colour(n2 + 2, m2 + 3, 2); set_colour(n2 + 4, m2 + 2, 0); set_colour(n2, m2 + 3, 3); set_colour(n2 + 2, m2 + 4, 0); set_colour(n2 + 4, m2 + 4, 0); set_colour(n2, m2 + 5, 3); set_colour(n2 + 1, m2 + 6, 3); set_colour(n2 + 3, m2 + 6, 2); set_colour(n2, m2 + 8, 2); set_colour(n2 + 2, m2 + 7, 3); set_colour(n2 + 4, m2 + 8, 1); } } void r_solve(int n1, int m1, int n2, int m2) { //cout << n1 << " " << m1 << " " << n2 << " " << m2 << "\n"; if (n1 == 0) { return; } if (m1 == 0) { return; } if (n1 <= 3) { solve(n1, m1, n2, m2); return; } if (m1 <= 3) { solve(n1, m1, n2, m2); return; } if (n1 == 6) { if (m1%2 == 0) { solve(6, 2, n2, m2); r_solve(6, m1 - 2, n2, m2 + 2); } else { solve(6, 3, n2, m2); r_solve(6, m1 - 3, n2, m2 + 3); } return; } if (m1 == 6) { if (n1%2 == 0) { solve(2, 6, n2, m2); r_solve(n1 - 2, 6, n2 + 2, m2); } else { solve(3, 6, n2, m2); r_solve(n1 - 3, 6, n2 + 3, m2); } return; } if (n1 == 9) { if (m1%2 == 0) { solve(9, 2, n2, m2); r_solve(9, m1 - 2, n2, m2 + 2); } else { solve(9, 5, n2, m2); r_solve(9, m1 - 5, n2, m2 + 5); } return; } if (m1 == 9) { if (n1%2 == 0) { solve(2, 9, n2, m2); r_solve(n1 - 2, 9, n2 + 2, m2); } else { solve(5, 9, n2, m2); r_solve(n1 - 5, 9, n2 + 5, m2); } return; } if (n1%3 == 0) { r_solve(6, m1, n2, m2); r_solve(n1 - 6, m1, n2 + 6, m2); return; } if (m1%3 == 0) { r_solve(n1, 6, n2, m2); r_solve(n1, m1 - 6, n2, m2 + 6); return; } } int main() { ios_base::sync_with_stdio(0); cin.tie(0); int n, m; cin >> n >> m; if (n == 1) { cout << "IMPOSSIBLE" << "\n"; return 0; } if (m == 1) { cout << "IMPOSSIBLE" << "\n"; return 0; } if (n == 2) { if (m % 3 != 0) { cout << "IMPOSSIBLE" << "\n"; return 0; } } if (m == 2) { if (n % 3 != 0) { cout << "IMPOSSIBLE" << "\n"; return 0; } } if (n == 3) { if (m % 2 != 0) { cout << "IMPOSSIBLE" << "\n"; return 0; } } if (m == 3) { if (n % 2 != 0) { cout << "IMPOSSIBLE" << "\n"; return 0; } } if (n*m%3 != 0) { cout << "IMPOSSIBLE" << "\n"; return 0; } cols[0][0] = 'A'; cols[0][1] = 'B'; cols[0][2] = 'C'; cols[0][3] = 'D'; cols[1][0] = 'E'; cols[1][1] = 'F'; cols[1][2] = 'G'; cols[1][3] = 'H'; cols[2][0] = 'I'; cols[2][1] = 'J'; cols[2][2] = 'K'; cols[2][3] = 'L'; cols[3][0] = 'M'; cols[3][1] = 'N'; cols[3][2] = 'O'; cols[3][3] = 'P'; r_solve(n, m, 0, 0); for (int i = 0; i < n; i++) { for (int j = 0; j < m; j++) { cout << tab[i][j]; } cout << "\n"; } return 0; }
Test details
Test 1
Verdict: ACCEPTED
input |
---|
1 1 |
correct output |
---|
IMPOSSIBLE |
user output |
---|
IMPOSSIBLE |
Test 2
Verdict: ACCEPTED
input |
---|
1 2 |
correct output |
---|
IMPOSSIBLE |
user output |
---|
IMPOSSIBLE |
Test 3
Verdict: ACCEPTED
input |
---|
1 3 |
correct output |
---|
IMPOSSIBLE |
user output |
---|
IMPOSSIBLE |
Test 4
Verdict: ACCEPTED
input |
---|
1 4 |
correct output |
---|
IMPOSSIBLE |
user output |
---|
IMPOSSIBLE |
Test 5
Verdict: ACCEPTED
input |
---|
1 5 |
correct output |
---|
IMPOSSIBLE |
user output |
---|
IMPOSSIBLE |
Test 6
Verdict: ACCEPTED
input |
---|
1 6 |
correct output |
---|
IMPOSSIBLE |
user output |
---|
IMPOSSIBLE |
Test 7
Verdict: ACCEPTED
input |
---|
1 9 |
correct output |
---|
IMPOSSIBLE |
user output |
---|
IMPOSSIBLE |
Test 8
Verdict: ACCEPTED
input |
---|
2 1 |
correct output |
---|
IMPOSSIBLE |
user output |
---|
IMPOSSIBLE |
Test 9
Verdict: ACCEPTED
input |
---|
2 2 |
correct output |
---|
IMPOSSIBLE |
user output |
---|
IMPOSSIBLE |
Test 10
Verdict: ACCEPTED
input |
---|
2 3 |
correct output |
---|
GHH GGH |
user output |
---|
AAG AGG |
Test 11
Verdict: ACCEPTED
input |
---|
2 4 |
correct output |
---|
IMPOSSIBLE |
user output |
---|
IMPOSSIBLE |
Test 12
Verdict: ACCEPTED
input |
---|
2 5 |
correct output |
---|
IMPOSSIBLE |
user output |
---|
IMPOSSIBLE |
Test 13
Verdict: ACCEPTED
input |
---|
2 6 |
correct output |
---|
GHHJFF GGHJJF |
user output |
---|
AAGDDF AGGDFF |
Test 14
Verdict: ACCEPTED
input |
---|
2 9 |
correct output |
---|
GHHJFFHII GGHJJFHHI |
user output |
---|
AAGDDFCCE AGGDFFCEE |
Test 15
Verdict: ACCEPTED
input |
---|
3 1 |
correct output |
---|
IMPOSSIBLE |
user output |
---|
IMPOSSIBLE |
Test 16
Verdict: ACCEPTED
input |
---|
3 2 |
correct output |
---|
GG HG HH |
user output |
---|
AA AJ JJ |
Test 17
Verdict: ACCEPTED
input |
---|
3 3 |
correct output |
---|
IMPOSSIBLE |
user output |
---|
IMPOSSIBLE |
Test 18
Verdict: ACCEPTED
input |
---|
3 4 |
correct output |
---|
GGII GLIN LLNN |
user output |
---|
AACC AJCL JJLL |
Test 19
Verdict: ACCEPTED
input |
---|
3 5 |
correct output |
---|
IMPOSSIBLE |
user output |
---|
IMPOSSIBLE |
Test 20
Verdict: ACCEPTED
input |
---|
3 6 |
correct output |
---|
GGIIFF GLINFK LLNNKK |
user output |
---|
AACCAA AJCLAJ JJLLJJ |
Test 21
Verdict: ACCEPTED
input |
---|
3 7 |
correct output |
---|
IMPOSSIBLE |
user output |
---|
IMPOSSIBLE |
Test 22
Verdict: ACCEPTED
input |
---|
3 8 |
correct output |
---|
GGIIFFHH GLINFKHM LLNNKKMM |
user output |
---|
AACCAACC AJCLAJCL JJLLJJLL |
Test 23
Verdict: ACCEPTED
input |
---|
3 9 |
correct output |
---|
IMPOSSIBLE |
user output |
---|
IMPOSSIBLE |
Test 24
Verdict: ACCEPTED
input |
---|
3 10 |
correct output |
---|
GGIIFFHHJJ GLINFKHMJO LLNNKKMMOO |
user output |
---|
AACCAACCAA AJCLAJCLAJ JJLLJJLLJJ |
Test 25
Verdict: ACCEPTED
input |
---|
4 1 |
correct output |
---|
IMPOSSIBLE |
user output |
---|
IMPOSSIBLE |
Test 26
Verdict: ACCEPTED
input |
---|
4 2 |
correct output |
---|
IMPOSSIBLE |
user output |
---|
IMPOSSIBLE |
Test 27
Verdict: ACCEPTED
input |
---|
4 3 |
correct output |
---|
GGL GLL IIN INN |
user output |
---|
AAG AGG IIO IOO |
Test 28
Verdict: ACCEPTED
input |
---|
4 4 |
correct output |
---|
IMPOSSIBLE |
user output |
---|
IMPOSSIBLE |
Test 29
Verdict: ACCEPTED
input |
---|
4 5 |
correct output |
---|
IMPOSSIBLE |
user output |
---|
IMPOSSIBLE |
Test 30
Verdict: ACCEPTED
input |
---|
4 6 |
correct output |
---|
GHHJFF GGHJJF QRRTPP QQRTTP |
user output |
---|
AAGDDF AGGDFF IIOLLN IOOLNN |
Test 31
Verdict: ACCEPTED
input |
---|
4 9 |
correct output |
---|
GHHJFFHII GGHJJFHHI QRRTPPRSS QQRTTPRRS |
user output |
---|
AAGDDFCCE AGGDFFCEE IIOLLNKKM IOOLNNKMM |
Test 32
Verdict: ACCEPTED
input |
---|
5 1 |
correct output |
---|
IMPOSSIBLE |
user output |
---|
IMPOSSIBLE |
Test 33
Verdict: ACCEPTED
input |
---|
5 2 |
correct output |
---|
IMPOSSIBLE |
user output |
---|
IMPOSSIBLE |
Test 34
Verdict: ACCEPTED
input |
---|
5 3 |
correct output |
---|
IMPOSSIBLE |
user output |
---|
IMPOSSIBLE |
Test 35
Verdict: ACCEPTED
input |
---|
5 4 |
correct output |
---|
IMPOSSIBLE |
user output |
---|
IMPOSSIBLE |
Test 36
Verdict: ACCEPTED
input |
---|
5 5 |
correct output |
---|
IMPOSSIBLE |
user output |
---|
IMPOSSIBLE |
Test 37
Verdict: ACCEPTED
input |
---|
5 6 |
correct output |
---|
GGIIFF GMMIFK QQMTKK QVXTTU VVXXUU |
user output |
---|
AACCAA AJCLAJ JJLLJJ MMCPPB MCCPBB |
Test 38
Verdict: ACCEPTED
input |
---|
5 9 |
correct output |
---|
GGIIFGGII GMMIFFGIN QQMTTQQNN QVXTUQWXX VVXXUUWWX |
user output |
---|
AAGDDBBAA AGGDIBGGA JJLLIIGLL AJCLAOOLA AACCAAOAA |
Test 39
Verdict: ACCEPTED
input |
---|
6 1 |
correct output |
---|
IMPOSSIBLE |
user output |
---|
IMPOSSIBLE |
Test 40
Verdict: ACCEPTED
input |
---|
6 2 |
correct output |
---|
GG HG HH JJ FJ ... |
user output |
---|
AA AJ JJ MM MF ... |
Test 41
Verdict: ACCEPTED
input |
---|
6 3 |
correct output |
---|
GGL GLL IIN INN FFK ... |
user output |
---|
AAG AGG IIO IOO AAG ... |
Test 42
Verdict: ACCEPTED
input |
---|
6 4 |
correct output |
---|
GGQQ HGRQ HHRR JJTT FJPT ... |
user output |
---|
AACC AJCL JJLL MMOO MFOH ... |
Test 43
Verdict: ACCEPTED
input |
---|
6 5 |
correct output |
---|
GGQQV GMQVV IMMXX IITTX FFKTU ... |
user output |
---|
AAGDD AGGDI IIOII IOOPP AAGPE ... |
Test 44
Verdict: ACCEPTED
input |
---|
6 6 |
correct output |
---|
GGIIFF GLINFK LLNNKK VVXXUU VBXDUA ... |
user output |
---|
AACCAA AJCLAJ JJLLJJ MMOOMM MFOHMF ... |
Test 45
Verdict: ACCEPTED
input |
---|
6 7 |
correct output |
---|
GHHJJGG GGHJOGL QRROOLL QQRYYVV BCCYEVB ... |
user output |
---|
AAGDDBB AGGDIBK IIOIIKK IOOPPNN AAGPENG ... |
Test 46
Verdict: ACCEPTED
input |
---|
6 8 |
correct output |
---|
GGIIFFHH GLINFKHM LLNNKKMM VVXXUUWW VBXDUAWC ... |
user output |
---|
AACCAACC AJCLAJCL JJLLJJLL MMOOMMOO MFOHMFOH ... |
Test 47
Verdict: ACCEPTED
input |
---|
6 9 |
correct output |
---|
GHHJJGGII GGHJOGLIN QRROOLLNN QQRYYVVXX BCCYEVBXD ... |
user output |
---|
AAGDDBBDD AGGDIBKDI IIOIIKKII IOOPPNNPP AAGPENGPE ... |
Test 48
Verdict: ACCEPTED
input |
---|
6 10 |
correct output |
---|
GGIIFFHHJJ GLINFKHMJO LLNNKKMMOO VVXXUUWWYY VBXDUAWCYE ... |
user output |
---|
AACCAACCAA AJCLAJCLAJ JJLLJJLLJJ MMOOMMOOMM MFOHMFOHMF ... |
Test 49
Verdict: ACCEPTED
input |
---|
7 3 |
correct output |
---|
IMPOSSIBLE |
user output |
---|
IMPOSSIBLE |
Test 50
Verdict: ACCEPTED
input |
---|
7 6 |
correct output |
---|
GGQQBB HGRQCB HHRRCC JJOYYE JOOYEE ... |
user output |
---|
AACCAA AJCLAJ JJLLJJ MMCPPB MCCPBB ... |
Test 51
Verdict: ACCEPTED
input |
---|
7 9 |
correct output |
---|
GGIIFGGII GMMIFFGIN QQMTTQQNN QVXTUQWXX VVXXUUWWX ... |
user output |
---|
AAGDDBBAA AGGDIBGGA JJLLIIGLL AJCLAOOLA AACCAAOAA ... |
Test 52
Verdict: ACCEPTED
input |
---|
8 3 |
correct output |
---|
GGL GLL IIN INN FFK ... |
user output |
---|
AAG AGG IIO IOO AAG ... |
Test 53
Verdict: ACCEPTED
input |
---|
8 6 |
correct output |
---|
GGLVVB GLLVBB IINXXD INNXDD FFKUUA ... |
user output |
---|
AAGDDF AGGDFF IIKKII IBKDIB BBDDBB ... |
Test 54
Verdict: ACCEPTED
input |
---|
8 9 |
correct output |
---|
GHHJFFHII GGHJJFHHI QRRTPPRSS QQRTTPRRS BCCEAACDD ... |
user output |
---|
AAGDDFCCE AGGDFFCEE IIOLLJJLL IOOLAJCLA AAGAACCAA ... |
Test 55
Verdict: ACCEPTED
input |
---|
9 1 |
correct output |
---|
IMPOSSIBLE |
user output |
---|
IMPOSSIBLE |
Test 56
Verdict: ACCEPTED
input |
---|
9 2 |
correct output |
---|
GG HG HH JJ FJ ... |
user output |
---|
AA AJ JJ MM MF ... |
Test 57
Verdict: ACCEPTED
input |
---|
9 3 |
correct output |
---|
IMPOSSIBLE |
user output |
---|
IMPOSSIBLE |
Test 58
Verdict: ACCEPTED
input |
---|
9 4 |
correct output |
---|
GGQQ HGRQ HHRR JJTT FJPT ... |
user output |
---|
AACC AJCL JJLL MMOO MFOH ... |
Test 59
Verdict: ACCEPTED
input |
---|
9 5 |
correct output |
---|
GGQQV GMQVV IMMXX IITTX FFTUU ... |
user output |
---|
AAGAA AJGGA JJOII MMOOI MCCAA ... |
Test 60
Verdict: ACCEPTED
input |
---|
9 6 |
correct output |
---|
GGQQBB HGRQCB HHRRCC JJOYYE JOOYEE ... |
user output |
---|
AACCAA AJCLAJ JJLLJJ MMOOMM MFOHMF ... |
Test 61
Verdict: ACCEPTED
input |
---|
9 7 |
correct output |
---|
GGQQVGG GMQVVHG IMMXXHH IITTXJJ FFTUUFJ ... |
user output |
---|
AAGAABB AJGGABK JJOIIKK MMOOINN MCCAANG ... |
Test 62
Verdict: ACCEPTED
input |
---|
9 8 |
correct output |
---|
GGQQBBLL HGRQCBML HHRRCCMM JJTTEEOO FJPTAEKO ... |
user output |
---|
AACCAACC AJCLAJCL JJLLJJLL MMOOMMOO MFOHMFOH ... |
Test 63
Verdict: ACCEPTED
input |
---|
9 9 |
correct output |
---|
GHHJJGGII GGHJOGLIN QQSOOLLNN QVSSYVVXX VVDYYVBXD ... |
user output |
---|
AAGAABBDD AJGGABKDI JJOIIKKII MMOOINNPP MCCAANGPE ... |
Test 64
Verdict: ACCEPTED
input |
---|
9 10 |
correct output |
---|
GGIIFFHHJJ GLINFKHMJO LLNNKKMMOO VVXXUUWWYY VBXDUAWCYE ... |
user output |
---|
AACCAACCAA AJCLAJCLAJ JJLLJJLLJJ MMOOMMOOMM MFOHMFOHMF ... Truncated |
Test 65
Verdict: ACCEPTED
input |
---|
10 3 |
correct output |
---|
GGL GLL IIN INN FFK ... |
user output |
---|
AAG AGG IIO IOO AAG ... |
Test 66
Verdict: ACCEPTED
input |
---|
10 6 |
correct output |
---|
GGLVVB GLLVBB IINXXD INNXDD FFKUUA ... |
user output |
---|
AAGDDF AGGDFF IIOLLN IOOLNN AACCAA ... |
Test 67
Verdict: ACCEPTED
input |
---|
10 9 |
correct output |
---|
GGLVVBLLQ GLLVBBLQQ IINXXDNNS INNXDDNSS FFKUUAKKP ... |
user output |
---|
AAGDDFCCE AGGDFFCEE IIOLLNKKM IOOLNNKMM AAGDDBBDD ... Truncated |
Test 68
Verdict: ACCEPTED
input |
---|
81 88 |
correct output |
---|
GGIIFFHHJJGGIIFFHHJJGGIIFFHHJJ... |
user output |
---|
AACCAACCAACCAACCAACCAACCAACCAA... Truncated |
Test 69
Verdict: ACCEPTED
input |
---|
32 27 |
correct output |
---|
GGLVVBLLQBBGQQVGGLVVBLLQBBG GLLVBBLQQBGGQVVGLLVBBLQQBGG IINXXDNNSDDISSXIINXXDNNSDDI INNXDDNSSDIISXXINNXDDNSSDII FFKUUAKKPAAFPPUFFKUUAKKPAAF ... |
user output |
---|
AAGDDFCCEBBHAAGDDFCCEBBHAAG AGGDFFCEEBHHAGGDFFCEEBHHAGG IIOLLNKKMJJPIIOLLNKKMJJPIIO IOOLNN ... Truncated |
Test 70
Verdict: ACCEPTED
input |
---|
63 76 |
correct output |
---|
GGIIFFHHJJGGIIFFHHJJGGIIFFHHJJ... |
user output |
---|
AACCAACCAACCAACCAACCAACCAACCAA... Truncated |
Test 71
Verdict: ACCEPTED
input |
---|
60 80 |
correct output |
---|
GGIIFFHHJJGGIIFFHHJJGGIIFFHHJJ... |
user output |
---|
AACCAACCAACCAACCAACCAACCAACCAA... Truncated |
Test 72
Verdict: ACCEPTED
input |
---|
21 49 |
correct output |
---|
GHHJJGGIIFFHHJJGGIIFFHHJJGGIIF... |
user output |
---|
AAGDDBBDDBBDDBBDDBBDDBBDDBBDDB... Truncated |
Test 73
Verdict: ACCEPTED
input |
---|
66 88 |
correct output |
---|
GGIIFFHHJJGGIIFFHHJJGGIIFFHHJJ... |
user output |
---|
AACCAACCAACCAACCAACCAACCAACCAA... Truncated |
Test 74
Verdict: ACCEPTED
input |
---|
98 42 |
correct output |
---|
GGLVVBLLQBBGQQVGGLVVBLLQBBGQQV... |
user output |
---|
AAGDDFCCEBBHAAGDDFCCEBBHAAGDDF... Truncated |
Test 75
Verdict: ACCEPTED
input |
---|
21 67 |
correct output |
---|
GHHJJGGIIFFHHJJGGIIFFHHJJGGIIF... |
user output |
---|
AAGDDBBDDBBDDBBDDBBDDBBDDBBDDB... Truncated |
Test 76
Verdict: ACCEPTED
input |
---|
87 13 |
correct output |
---|
GGQQVGGQQBBLL GMQVVHGRQCBML IMMXXHHRRCCMM IITTXJJTTEEOO FFTUUFJPTAEKO ... |
user output |
---|
AAGDDBBDDBBDD AGGDIBKDIBKDI IIOIIKKIIKKII IOOPPNNPPNNPP AAGPENGPENGPE ... Truncated |
Test 77
Verdict: ACCEPTED
input |
---|
60 67 |
correct output |
---|
GHHJJGGIIFFHHJJGGIIFFHHJJGGIIF... |
user output |
---|
AAGDDBBDDBBDDBBDDBBDDBBDDBBDDB... Truncated |
Test 78
Verdict: ACCEPTED
input |
---|
13 57 |
correct output |
---|
GGIIFGGIIFFHHJJGGIIFFHHJJGGIIF... |
user output |
---|
AACCAACCAACCAACCAACCAACCAACCAA... Truncated |
Test 79
Verdict: ACCEPTED
input |
---|
50 12 |
correct output |
---|
GGLVVBLLQBBG GLLVBBLQQBGG IINXXDNNSDDI INNXDDNSSDII FFKUUAKKPAAF ... |
user output |
---|
AAGDDFCCEBBH AGGDFFCEEBHH IIOLLNKKMJJP IOOLNNKMMJPP AAGDDFCCEBBH ... Truncated |
Test 80
Verdict: ACCEPTED
input |
---|
21 39 |
correct output |
---|
GHHJJGGIIFFHHJJGGIIFFHHJJGGIIF... |
user output |
---|
AAGDDBBDDBBDDBBDDBBDDBBDDBBDDB... Truncated |
Test 81
Verdict: ACCEPTED
input |
---|
19 66 |
correct output |
---|
GGIIFFHHJJGGIIFFHHJJGGIIFFHHJJ... |
user output |
---|
AACCAACCAACCAACCAACCAACCAACCAA... Truncated |
Test 82
Verdict: ACCEPTED
input |
---|
86 72 |
correct output |
---|
GGLVVBLLQBBGQQVGGLVVBLLQBBGQQV... |
user output |
---|
AAGDDFCCEBBHAAGDDFCCEBBHAAGDDF... Truncated |
Test 83
Verdict: ACCEPTED
input |
---|
46 66 |
correct output |
---|
GHHJFFHIIFGGIJJGHHJFFHIIFGGIJJ... |
user output |
---|
AAGDDFCCEBBHAAGDDFCCEBBHAAGDDF... Truncated |
Test 84
Verdict: ACCEPTED
input |
---|
96 72 |
correct output |
---|
GGLVVBLLQBBGQQVGGLVVBLLQBBGQQV... |
user output |
---|
AACCAACCAACCAACCAACCAACCAACCAA... Truncated |
Test 85
Verdict: ACCEPTED
input |
---|
93 40 |
correct output |
---|
GGQQBBLLVVGGQQBBLLVVGGQQBBLLVV... |
user output |
---|
AACCAACCAACCAACCAACCAACCAACCAA... Truncated |
Test 86
Verdict: ACCEPTED
input |
---|
92 69 |
correct output |
---|
GGLVVBLLQBBGQQVGGLVVBLLQBBGQQV... |
user output |
---|
AAGDDFCCEBBHAAGDDFCCEBBHAAGDDF... Truncated |
Test 87
Verdict: ACCEPTED
input |
---|
13 96 |
correct output |
---|
GGIIFFHHJJGGIIFFHHJJGGIIFFHHJJ... |
user output |
---|
AACCAACCAACCAACCAACCAACCAACCAA... Truncated |
Test 88
Verdict: ACCEPTED
input |
---|
3 99 |
correct output |
---|
IMPOSSIBLE |
user output |
---|
IMPOSSIBLE |
Test 89
Verdict: ACCEPTED
input |
---|
3 100 |
correct output |
---|
GGIIFFHHJJGGIIFFHHJJGGIIFFHHJJ... |
user output |
---|
AACCAACCAACCAACCAACCAACCAACCAA... Truncated |
Test 90
Verdict: ACCEPTED
input |
---|
99 100 |
correct output |
---|
GGIIFFHHJJGGIIFFHHJJGGIIFFHHJJ... |
user output |
---|
AACCAACCAACCAACCAACCAACCAACCAA... Truncated |
Test 91
Verdict: ACCEPTED
input |
---|
100 100 |
correct output |
---|
IMPOSSIBLE |
user output |
---|
IMPOSSIBLE |