CSES - HIIT Open 2019 - Results
Submission details
Task:L-Trominos
Sender:bigint bugaa
Submission time:2019-05-25 13:07:15 +0300
Language:C++
Status:READY
Result:ACCEPTED
Test results
testverdicttime
#1ACCEPTED0.03 sdetails
#2ACCEPTED0.02 sdetails
#3ACCEPTED0.02 sdetails
#4ACCEPTED0.01 sdetails
#5ACCEPTED0.02 sdetails
#6ACCEPTED0.03 sdetails
#7ACCEPTED0.02 sdetails
#8ACCEPTED0.03 sdetails
#9ACCEPTED0.03 sdetails
#10ACCEPTED0.03 sdetails
#11ACCEPTED0.03 sdetails
#12ACCEPTED0.02 sdetails
#13ACCEPTED0.02 sdetails
#14ACCEPTED0.01 sdetails
#15ACCEPTED0.02 sdetails
#16ACCEPTED0.02 sdetails
#17ACCEPTED0.02 sdetails
#18ACCEPTED0.03 sdetails
#19ACCEPTED0.01 sdetails
#20ACCEPTED0.02 sdetails
#21ACCEPTED0.02 sdetails
#22ACCEPTED0.02 sdetails
#23ACCEPTED0.01 sdetails
#24ACCEPTED0.02 sdetails
#25ACCEPTED0.01 sdetails
#26ACCEPTED0.01 sdetails
#27ACCEPTED0.02 sdetails
#28ACCEPTED0.01 sdetails
#29ACCEPTED0.02 sdetails
#30ACCEPTED0.02 sdetails
#31ACCEPTED0.01 sdetails
#32ACCEPTED0.02 sdetails
#33ACCEPTED0.02 sdetails
#34ACCEPTED0.03 sdetails
#35ACCEPTED0.01 sdetails
#36ACCEPTED0.01 sdetails
#37ACCEPTED0.02 sdetails
#38ACCEPTED0.03 sdetails
#39ACCEPTED0.03 sdetails
#40ACCEPTED0.02 sdetails
#41ACCEPTED0.02 sdetails
#42ACCEPTED0.01 sdetails
#43ACCEPTED0.01 sdetails
#44ACCEPTED0.03 sdetails
#45ACCEPTED0.01 sdetails
#46ACCEPTED0.01 sdetails
#47ACCEPTED0.02 sdetails
#48ACCEPTED0.02 sdetails
#49ACCEPTED0.02 sdetails
#50ACCEPTED0.02 sdetails
#51ACCEPTED0.03 sdetails
#52ACCEPTED0.01 sdetails
#53ACCEPTED0.02 sdetails
#54ACCEPTED0.02 sdetails
#55ACCEPTED0.02 sdetails
#56ACCEPTED0.01 sdetails
#57ACCEPTED0.02 sdetails
#58ACCEPTED0.02 sdetails
#59ACCEPTED0.02 sdetails
#60ACCEPTED0.02 sdetails
#61ACCEPTED0.01 sdetails
#62ACCEPTED0.02 sdetails
#63ACCEPTED0.02 sdetails
#64ACCEPTED0.02 sdetails
#65ACCEPTED0.02 sdetails
#66ACCEPTED0.01 sdetails
#67ACCEPTED0.02 sdetails
#68ACCEPTED0.03 sdetails
#69ACCEPTED0.02 sdetails
#70ACCEPTED0.02 sdetails
#71ACCEPTED0.02 sdetails
#72ACCEPTED0.02 sdetails
#73ACCEPTED0.01 sdetails
#74ACCEPTED0.02 sdetails
#75ACCEPTED0.01 sdetails
#76ACCEPTED0.02 sdetails
#77ACCEPTED0.01 sdetails
#78ACCEPTED0.03 sdetails
#79ACCEPTED0.02 sdetails
#80ACCEPTED0.02 sdetails
#81ACCEPTED0.02 sdetails
#82ACCEPTED0.03 sdetails
#83ACCEPTED0.02 sdetails
#84ACCEPTED0.02 sdetails
#85ACCEPTED0.03 sdetails
#86ACCEPTED0.03 sdetails
#87ACCEPTED0.02 sdetails
#88ACCEPTED0.02 sdetails
#89ACCEPTED0.02 sdetails
#90ACCEPTED0.03 sdetails
#91ACCEPTED0.03 sdetails

Code

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define IMP {cout << "IMPOSSIBLE\n"; exit(0);}
char res[100][100];
char gvc(int x, int y) {
	x %= 5; y %= 5;
	return 'A'+(x*5+y);
}
void mk2x3(int x, int y) {
	char A = gvc(x, y), B = gvc(x+1, y+2);
	res[x][y] = A;
	res[x+1][y] = A;
	res[x][y+1] = A;
	res[x][y+2] = B;
	res[x+1][y+1] = B;
	res[x+1][y+2] = B;
}
void mk3x2(int x, int y) {
	char A = gvc(x, y), B = gvc(x+2, y+1);
	res[x][y] = A;
	res[x][y+1] = A;
	res[x+1][y] = A;
	res[x+2][y] = B;
	res[x+1][y+1] = B;
	res[x+2][y+1] = B;
}
void mk5x9(int x, int y) {
	mk3x2(x, y);
	mk2x3(x+3, y);
	mk2x3(x, y+6);
	mk3x2(x+2, y+5);
	mk3x2(x+2, y+7);
	char X = gvc(x, y+2);
	res[x][y+2] = X;
	res[x+1][y+2] = X;
	res[x][y+3] = X;
	X = gvc(x, y+4);
	res[x][y+4] = X;
	res[x][y+5] = X;
	res[x+1][y+5] = X;
	X = gvc(x+1, y+3);
	res[x+1][y+3] = X;
	res[x+1][y+4] = X;
	res[x+2][y+4] = X;
	X = gvc(x+2, y+2);
	res[x+2][y+2] = X;
	res[x+2][y+3] = X;
	res[x+3][y+3] = X;
	X = gvc(x+3, y+4);
	res[x+3][y+4] = X;
	res[x+4][y+4] = X;
	res[x+4][y+3] = X;
}
void mknx9(int n) {
	if (n == 3) IMP;
	mk5x9(0, 0);
	for (int i = 5; i < n; i += 2) {
		mk2x3(i, 0);
		mk2x3(i, 3);
		mk2x3(i, 6);
	}
}
int main() {
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	int n, m;
	cin >> n >> m;
	bool trp = 0;
	if (m % 3 != 0) trp = 1, swap(n, m);
	if (m % 3 != 0) IMP
	if (n == 1) IMP
	if (n % 2 == 0) {
		for (int i = 0; i < n; i += 2) {
			for (int j = 0; j < m; j += 3) {
				mk2x3(i, j);
			}
		}
	} else if (m % 2 == 0) {
		for (int i = 0; i < m; i += 2) {
			mk3x2(0, i);
		}
		for (int i = 3; i < n; i += 2) {
			for (int j = 0; j < m; j += 3) {
				mk2x3(i, j);
			}
		}
	} else if (m == 3) IMP
	else {
		// m = 9+6k
		mknx9(n);
		for (int i = 9; i < m; i += 2) {
			mk3x2(0, i);
		}
		for (int i = 3; i < n; i += 2) {
			for (int j = 9; j < m; j += 3) {
				mk2x3(i, j);
			}
		}
	}
	if (!trp)
	for (int i = 0; i < n; ++i) {
		for (int j = 0; j < m; ++j) {
			cout << res[i][j];
		}
		cout << "\n";
	}
	else
	for (int j = 0; j < m; ++j) {
		for (int i = 0; i < n; ++i) {
			cout << res[i][j];
		}
		cout << "\n";
	}
}

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
AAH
AHH

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
AAHDDF
AHHDFF

Test 14

Verdict: ACCEPTED

input
2 9

correct output
GHHJFFHII
GGHJJFHHI

user output
AAHDDFBBI
AHHDFFBII

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
AH
HH

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
AAKK
AHKR
HHRR

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
AACCEE
ALCNEK
LLNNKK

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
AAKKUUFF
AHKRUCFM
HHRRCCMM

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
AAKKUUFFPP
AHKRUCFMPW
HHRRCCMMWW

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
AAH
AHH
KKR
KRR

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
AAHDDF
AHHDFF
KKRNNP
KRRNPP

Test 31

Verdict: ACCEPTED

input
4 9

correct output
GHHJFFHII
GGHJJFHHI
QRRTPPRSS
QQRTTPRRS

user output
AAHDDFBBI
AHHDFFBII
KKRNNPLLS
KRRNPPLSS

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
AACCEE
ALCNEK
LLNNKK
PPWSSU
PWWSUU

Test 38

Verdict: ACCEPTED

input
5 9

correct output
GGIIFGGII
GMMIFFGIN
QQMTTQQNN
QVXTUQWXX
VVXXUUWWX

user output
AACCEEBBI
ALCIIEBII
LLMMIKKMM
PPWMTKVMX
PWWTTVVXX

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
AH
HH
DD
DF
...

Test 41

Verdict: ACCEPTED

input
6 3

correct output
GGL
GLL
IIN
INN
FFK
...

user output
AAH
AHH
KKR
KRR
UUC
...

Test 42

Verdict: ACCEPTED

input
6 4

correct output
GGQQ
HGRQ
HHRR
JJTT
FJPT
...

user output
AAKK
AHKR
HHRR
DDNN
DFNP
...

Test 43

Verdict: ACCEPTED

input
6 5

correct output
GGQQV
GMQVV
IMMXX
IITTX
FFKTU
...

user output
AALPP
ALLPW
CCNWW
CNNSS
EEKSU
...

Test 44

Verdict: ACCEPTED

input
6 6

correct output
GGIIFF
GLINFK
LLNNKK
VVXXUU
VBXDUA
...

user output
AAHDDF
AHHDFF
KKRNNP
KRRNPP
UUCXXA
...

Test 45

Verdict: ACCEPTED

input
6 7

correct output
GHHJJGG
GGHJOGL
QRROOLL
QQRYYVV
BCCYEVB
...

user output
AALPPAA
ALLPWAH
CCNWWHH
CNNSSDD
EEKSUDF
...

Test 46

Verdict: ACCEPTED

input
6 8

correct output
GGIIFFHH
GLINFKHM
LLNNKKMM
VVXXUUWW
VBXDUAWC
...

user output
AAKKUUFF
AHKRUCFM
HHRRCCMM
DDNNXXII
DFNPXAIK
...

Test 47

Verdict: ACCEPTED

input
6 9

correct output
GHHJJGGII
GGHJOGLIN
QRROOLLNN
QQRYYVVXX
BCCYEVBXD
...

user output
AAHDDFBBI
AHHDFFBII
KKRNNPLLS
KRRNPPLSS
UUCXXAVVD
...

Test 48

Verdict: ACCEPTED

input
6 10

correct output
GGIIFFHHJJ
GLINFKHMJO
LLNNKKMMOO
VVXXUUWWYY
VBXDUAWCYE
...

user output
AAKKUUFFPP
AHKRUCFMPW
HHRRCCMMWW
DDNNXXIISS
DFNPXAIKSU
...

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
AACCEE
ALCNEK
LLNNKK
PPWSSU
PWWSUU
...

Test 51

Verdict: ACCEPTED

input
7 9

correct output
GGIIFGGII
GMMIFFGIN
QQMTTQQNN
QVXTUQWXX
VVXXUUWWX
...

user output
AACCEEBBI
ALCIIEBII
LLMMIKKMM
PPWMTKVMX
PWWTTVVXX
...

Test 52

Verdict: ACCEPTED

input
8 3

correct output
GGL
GLL
IIN
INN
FFK
...

user output
AAH
AHH
KKR
KRR
UUC
...

Test 53

Verdict: ACCEPTED

input
8 6

correct output
GGLVVB
GLLVBB
IINXXD
INNXDD
FFKUUA
...

user output
AAHDDF
AHHDFF
KKRNNP
KRRNPP
UUCXXA
...

Test 54

Verdict: ACCEPTED

input
8 9

correct output
GHHJFFHII
GGHJJFHHI
QRRTPPRSS
QQRTTPRRS
BCCEAACDD
...

user output
AAHDDFBBI
AHHDFFBII
KKRNNPLLS
KRRNPPLSS
UUCXXAVVD
...

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
AH
HH
DD
DF
...

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
AAKK
AHKR
HHRR
DDNN
DFNP
...

Test 59

Verdict: ACCEPTED

input
9 5

correct output
GGQQV
GMQVV
IMMXX
IITTX
FFTUU
...

user output
AALPP
ALLPW
CCMWW
CIMMT
EIITT
...

Test 60

Verdict: ACCEPTED

input
9 6

correct output
GGQQBB
HGRQCB
HHRRCC
JJOYYE
JOOYEE
...

user output
AACCEE
ALCNEK
LLNNKK
PPWSSU
PWWSUU
...

Test 61

Verdict: ACCEPTED

input
9 7

correct output
GGQQVGG
GMQVVHG
IMMXXHH
IITTXJJ
FFTUUFJ
...

user output
AALPPAA
ALLPWAH
CCMWWHH
CIMMTDD
EIITTDF
...

Test 62

Verdict: ACCEPTED

input
9 8

correct output
GGQQBBLL
HGRQCBML
HHRRCCMM
JJTTEEOO
FJPTAEKO
...

user output
AAKKUUFF
AHKRUCFM
HHRRCCMM
DDNNXXII
DFNPXAIK
...

Test 63

Verdict: ACCEPTED

input
9 9

correct output
GHHJJGGII
GGHJOGLIN
QQSOOLLNN
QVSSYVVXX
VVDYYVBXD
...

user output
AACCEEBBI
ALCIIEBII
LLMMIKKMM
PPWMTKVMX
PWWTTVVXX
...

Test 64

Verdict: ACCEPTED

input
9 10

correct output
GGIIFFHHJJ
GLINFKHMJO
LLNNKKMMOO
VVXXUUWWYY
VBXDUAWCYE
...

user output
AAKKUUFFPP
AHKRUCFMPW
HHRRCCMMWW
DDNNXXIISS
DFNPXAIKSU
...
Truncated

Test 65

Verdict: ACCEPTED

input
10 3

correct output
GGL
GLL
IIN
INN
FFK
...

user output
AAH
AHH
KKR
KRR
UUC
...

Test 66

Verdict: ACCEPTED

input
10 6

correct output
GGLVVB
GLLVBB
IINXXD
INNXDD
FFKUUA
...

user output
AAHDDF
AHHDFF
KKRNNP
KRRNPP
UUCXXA
...

Test 67

Verdict: ACCEPTED

input
10 9

correct output
GGLVVBLLQ
GLLVBBLQQ
IINXXDNNS
INNXDDNSS
FFKUUAKKP
...

user output
AAHDDFBBI
AHHDFFBII
KKRNNPLLS
KRRNPPLSS
UUCXXAVVD
...
Truncated

Test 68

Verdict: ACCEPTED

input
81 88

correct output
GGIIFFHHJJGGIIFFHHJJGGIIFFHHJJ...

user output
AAKKUUFFPPAAKKUUFFPPAAKKUUFFPP...
Truncated

Test 69

Verdict: ACCEPTED

input
32 27

correct output
GGLVVBLLQBBGQQVGGLVVBLLQBBG
GLLVBBLQQBGGQVVGLLVBBLQQBGG
IINXXDNNSDDISSXIINXXDNNSDDI
INNXDDNSSDIISXXINNXDDNSSDII
FFKUUAKKPAAFPPUFFKUUAKKPAAF
...

user output
AAHDDFBBIEEGCCJAAHDDFBBIEEG
AHHDFFBIIEGGCJJAHHDFFBIIEGG
KKRNNPLLSOOQMMTKKRNNPLLSOOQ
KRRNPP

...
Truncated

Test 70

Verdict: ACCEPTED

input
63 76

correct output
GGIIFFHHJJGGIIFFHHJJGGIIFFHHJJ...

user output
AAKKUUFFPPAAKKUUFFPPAAKKUUFFPP...
Truncated

Test 71

Verdict: ACCEPTED

input
60 80

correct output
GGIIFFHHJJGGIIFFHHJJGGIIFFHHJJ...

user output
AAKKUUFFPPAAKKUUFFPPAAKKUUFFPP...
Truncated

Test 72

Verdict: ACCEPTED

input
21 49

correct output
GHHJJGGIIFFHHJJGGIIFFHHJJGGIIF...

user output
AALPPAAKKUUFFPPAAKKUUFFPPAAKKU...
Truncated

Test 73

Verdict: ACCEPTED

input
66 88

correct output
GGIIFFHHJJGGIIFFHHJJGGIIFFHHJJ...

user output
AAKKUUFFPPAAKKUUFFPPAAKKUUFFPP...
Truncated

Test 74

Verdict: ACCEPTED

input
98 42

correct output
GGLVVBLLQBBGQQVGGLVVBLLQBBGQQV...

user output
AAHDDFBBIEEGCCJAAHDDFBBIEEGCCJ...
Truncated

Test 75

Verdict: ACCEPTED

input
21 67

correct output
GHHJJGGIIFFHHJJGGIIFFHHJJGGIIF...

user output
AALPPAAKKUUFFPPAAKKUUFFPPAAKKU...
Truncated

Test 76

Verdict: ACCEPTED

input
87 13

correct output
GGQQVGGQQBBLL
GMQVVHGRQCBML
IMMXXHHRRCCMM
IITTXJJTTEEOO
FFTUUFJPTAEKO
...

user output
AALPPAAKKUUFF
ALLPWAHKRUCFM
CCMWWHHRRCCMM
CIMMTDDNNXXII
EIITTDFNPXAIK
...
Truncated

Test 77

Verdict: ACCEPTED

input
60 67

correct output
GHHJJGGIIFFHHJJGGIIFFHHJJGGIIF...

user output
AALPPAAKKUUFFPPAAKKUUFFPPAAKKU...
Truncated

Test 78

Verdict: ACCEPTED

input
13 57

correct output
GGIIFGGIIFFHHJJGGIIFFHHJJGGIIF...

user output
AACCEEBBIEEBBDDAACCEEBBDDAACCE...
Truncated

Test 79

Verdict: ACCEPTED

input
50 12

correct output
GGLVVBLLQBBG
GLLVBBLQQBGG
IINXXDNNSDDI
INNXDDNSSDII
FFKUUAKKPAAF
...

user output
AAHDDFBBIEEG
AHHDFFBIIEGG
KKRNNPLLSOOQ
KRRNPPLSSOQQ
UUCXXAVVDYYB
...
Truncated

Test 80

Verdict: ACCEPTED

input
21 39

correct output
GHHJJGGIIFFHHJJGGIIFFHHJJGGIIF...

user output
AACCEEBBIEEBBDDAACCEEBBDDAACCE...
Truncated

Test 81

Verdict: ACCEPTED

input
19 66

correct output
GGIIFFHHJJGGIIFFHHJJGGIIFFHHJJ...

user output
AACCEEBBDDAACCEEBBDDAACCEEBBDD...
Truncated

Test 82

Verdict: ACCEPTED

input
86 72

correct output
GGLVVBLLQBBGQQVGGLVVBLLQBBGQQV...

user output
AAHDDFBBIEEGCCJAAHDDFBBIEEGCCJ...
Truncated

Test 83

Verdict: ACCEPTED

input
46 66

correct output
GHHJFFHIIFGGIJJGHHJFFHIIFGGIJJ...

user output
AAHDDFBBIEEGCCJAAHDDFBBIEEGCCJ...
Truncated

Test 84

Verdict: ACCEPTED

input
96 72

correct output
GGLVVBLLQBBGQQVGGLVVBLLQBBGQQV...

user output
AAHDDFBBIEEGCCJAAHDDFBBIEEGCCJ...
Truncated

Test 85

Verdict: ACCEPTED

input
93 40

correct output
GGQQBBLLVVGGQQBBLLVVGGQQBBLLVV...

user output
AAKKUUFFPPAAKKUUFFPPAAKKUUFFPP...
Truncated

Test 86

Verdict: ACCEPTED

input
92 69

correct output
GGLVVBLLQBBGQQVGGLVVBLLQBBGQQV...

user output
AAHDDFBBIEEGCCJAAHDDFBBIEEGCCJ...
Truncated

Test 87

Verdict: ACCEPTED

input
13 96

correct output
GGIIFFHHJJGGIIFFHHJJGGIIFFHHJJ...

user output
AACCEEBBDDAACCEEBBDDAACCEEBBDD...
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
AAKKUUFFPPAAKKUUFFPPAAKKUUFFPP...
Truncated

Test 90

Verdict: ACCEPTED

input
99 100

correct output
GGIIFFHHJJGGIIFFHHJJGGIIFFHHJJ...

user output
AAKKUUFFPPAAKKUUFFPPAAKKUUFFPP...
Truncated

Test 91

Verdict: ACCEPTED

input
100 100

correct output
IMPOSSIBLE

user output
IMPOSSIBLE