QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#393400 | #8599. Кольорова таблиця | _map_ | 24 | 1ms | 3720kb | C++17 | 8.4kb | 2024-04-18 16:12:53 | 2024-04-18 16:12:53 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
Subtask #1:
score: 0
Wrong Answer
Test #1:
score: 7
Accepted
time: 0ms
memory: 3292kb
input:
1 34 3 17 GGGRBGGBBGGBGBGBBRGGGRRRBBGGGBBRGB
output:
GRGRGRGBGRGBGBGBGRGRGRBRGBGRGBGRGB
result:
ok ok
Test #2:
score: -7
Wrong Answer
time: 0ms
memory: 3272kb
input:
1 75 3 37 RBRBBBGGRGBGRBBGGRGBGGGGBRBRRGRGRBBRRRGBGGRBRRRRGBRBGGBGBRBBRRRRGRGBBRRBRBG
output:
BBBBGBGRBRGRBBGRGRGBGRGRGRGRBRBRBBGRBRGBGRBBBRBRGBBBGRGRGRGBBRBRGRGBGRBBBBG
result:
wrong answer there can't be two adjacent points on the grid with equal colors 0 0 0 1
Subtask #2:
score: 7
Accepted
Test #31:
score: 7
Accepted
time: 0ms
memory: 3368kb
input:
1 78 2 39 GRGGGRGRGRRRRGGRRRRGRGRGRGGGRGRRRRRRRGGRRGGGGGRGRGGGGGRRGRGRGGGRRRGRGGGRRRRRGG
output:
GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR
result:
ok ok
Test #32:
score: 0
Accepted
time: 0ms
memory: 3380kb
input:
1 18 2 9 GGRGRRRRGRRRGRGRRG
output:
GRGRGRGRGRGRGRGRGR
result:
ok ok
Test #33:
score: 0
Accepted
time: 0ms
memory: 3300kb
input:
1 63 2 31 RGRRRRRRRGGGRGRRRGGGRRRRGGRRGRRGRGRGGRGGRGRRRGRGRRRRGRRRGGRRGRR
output:
RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR
result:
ok ok
Test #34:
score: 0
Accepted
time: 0ms
memory: 3280kb
input:
1 3 2 1 RGG
output:
RGR
result:
ok ok
Test #35:
score: 0
Accepted
time: 0ms
memory: 1232kb
input:
1 47 2 23 RRGRRRGGGRGGRRGGRGRRGRRRGGRRGRGGGGGGGRGRRRGGGGR
output:
GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG
result:
ok ok
Test #36:
score: 0
Accepted
time: 0ms
memory: 3372kb
input:
1 96 2 48 GRRGGRRGGRRGGGGGRRGRRGGGRRGRGGRRRGGRRRGGGGRGRGRGGRGGGGRGRGRRGRGGGRRRGGGRGRGGRGRGRRRRRRGRRGRGGGGR
output:
RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG
result:
ok ok
Test #37:
score: 0
Accepted
time: 0ms
memory: 3376kb
input:
1 44 2 22 GRRGGRRRRRRRRRRGRRGRRGRGGGGGGGGRGGGGRGRGRGGR
output:
RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG
result:
ok ok
Test #38:
score: 0
Accepted
time: 0ms
memory: 3296kb
input:
1 88 2 44 GGRRRRGRRGRGGGRGRGRRGRGGGRRGGRRRRGRRGRGRGRRRRGRRRGRRGRRGRRRRGRGGGRRRGRGRGRGGGGGGGRRRRRGG
output:
GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR
result:
ok ok
Test #39:
score: 0
Accepted
time: 0ms
memory: 3348kb
input:
1 29 2 14 RGGGGRGRRGRRRRGRRRRGRGRGRRRGR
output:
RGRGRGRGRGRGRGRGRGRGRGRGRGRGR
result:
ok ok
Test #40:
score: 0
Accepted
time: 0ms
memory: 3372kb
input:
1 25 2 12 RRGGGGRRRRGGGGRGRRGGGRGGG
output:
GRGRGRGRGRGRGRGRGRGRGRGRG
result:
ok ok
Test #41:
score: 0
Accepted
time: 0ms
memory: 3348kb
input:
1 73 2 36 RRGGRGGRGRRRRRGGRRGGRGRGGRGGGRGRGGGRRRGGRRGRRRRRRGGGRGGGGGGRGRGGGRRRRGRGR
output:
GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG
result:
ok ok
Test #42:
score: 0
Accepted
time: 0ms
memory: 3276kb
input:
1 22 2 11 RGRRGGGRGGRRGGGRRGRGRR
output:
RGRGRGRGRGRGRGRGRGRGRG
result:
ok ok
Test #43:
score: 0
Accepted
time: 0ms
memory: 3296kb
input:
1 66 2 33 GGRGGGRGRGRGRGRRRRRGGRRRGRGGRGGGGRRRGGGRRGRRGRRGRRRGRRGGGRRRRRRGGR
output:
RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG
result:
ok ok
Test #44:
score: 0
Accepted
time: 0ms
memory: 3352kb
input:
1 10 2 5 GRGRRGRGRG
output:
RGRGRGRGRG
result:
ok ok
Test #45:
score: 0
Accepted
time: 0ms
memory: 3384kb
input:
1 51 2 25 GRGGGGGGGRGGRGGRRGGRGRRRGRRRRRGGRRRRGGRGRGGGRRRGGRR
output:
GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG
result:
ok ok
Test #46:
score: 0
Accepted
time: 0ms
memory: 3292kb
input:
1 99 2 49 RRRGRGRGGRGGGRGGRRRRGGGRRGGRRRRRGRRGRGGRGRRRRRRGGRGRGGGRRRRGGGGGRGGRRRRRGRGGGRGRRGGGGGRGRGGGRGRRGGR
output:
GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG
result:
ok ok
Test #47:
score: 0
Accepted
time: 0ms
memory: 3372kb
input:
1 39 2 19 RGRRRGRRGRGRRGRGRGGRRRRGRRGRRRRRRRGRRRR
output:
RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR
result:
ok ok
Test #48:
score: 0
Accepted
time: 0ms
memory: 3372kb
input:
1 92 2 46 RGRGGGGRRGRGGRRGRRGGGRGGGGGGRGGRGRGGGGGGGGRRGRRGRGRGGRGGRGRGGGRRRRGRRGRGGRRRGRRGGGRGRRRRRRRR
output:
RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG
result:
ok ok
Test #49:
score: 0
Accepted
time: 0ms
memory: 3348kb
input:
1 36 2 18 GGGRRGGRRGRRRGRGRRRGGGRGRRRGGGRGGGGG
output:
RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG
result:
ok ok
Test #50:
score: 0
Accepted
time: 0ms
memory: 3328kb
input:
1 15 2 7 GRRGGRGRGRRRGGG
output:
GRGRGRGRGRGRGRG
result:
ok ok
Test #51:
score: 0
Accepted
time: 0ms
memory: 3384kb
input:
1 59 2 29 RRGRGRGRRRGGRRGGGRGGRGGGGRGGGRRGRRRGGGRRGGRGGGGGGGRRRGGGRGR
output:
RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR
result:
ok ok
Test #52:
score: 0
Accepted
time: 0ms
memory: 3304kb
input:
1 99 2 49 RRGGRRRGRRGGGGRGGGGGGRRGRGRGGRGGGRRRRRGRRRRGRGGRGGGRRRRRGGRGGGGGRRGGRGGGRRGGGRGGRGRGGRRGRRGGGRRRGGR
output:
RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR
result:
ok ok
Test #53:
score: 0
Accepted
time: 0ms
memory: 3288kb
input:
1 52 2 26 RGGRGRGGGGGRRRRRGRRGGGGGGRRRGRRGRRRGRGRGGRGGRGGRRGRG
output:
RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG
result:
ok ok
Test #54:
score: 0
Accepted
time: 0ms
memory: 3380kb
input:
1 96 2 48 GGRRGRGGGGGGGGRRGGGGRRRRGGRRGGGRGRRRGGRGRGRRRGGGRGRGGRGRRGRRRGGRGGRGRRGRGRGGGRRRRRRGRGRRRGGGGRRG
output:
RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG
result:
ok ok
Test #55:
score: 0
Accepted
time: 0ms
memory: 3372kb
input:
1 40 2 20 GGRGRRRRGGRRRRGRGGGRGRGRRRGRGGRRGGGGGRGR
output:
GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR
result:
ok ok
Test #56:
score: 0
Accepted
time: 0ms
memory: 3296kb
input:
1 85 2 42 GRGRGRRRRRRRGGGRGRRRGGRRGGGGRRGRRGGRGGRRRRGGGGGRRRRRGGGRRRGRRGGRGGRGGRGRGRRRRGGRGRRGR
output:
GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG
result:
ok ok
Test #57:
score: 0
Accepted
time: 0ms
memory: 3296kb
input:
1 25 2 12 RRGGRRGRRRRGRRRRGGRRRRGRR
output:
GRGRGRGRGRGRGRGRGRGRGRGRG
result:
ok ok
Test #58:
score: 0
Accepted
time: 0ms
memory: 3344kb
input:
1 70 2 35 RGRRRRGRGRGRGRRGGRGRGGRGGRRGRRRGRGGRRRGGRGGGRGGRGRGRGRGRRRGRRRRGGRRGGG
output:
GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR
result:
ok ok
Test #59:
score: 0
Accepted
time: 0ms
memory: 3356kb
input:
1 26 2 13 RGRRGRRGGGGGRGGGRRGGGGGGRG
output:
RGRGRGRGRGRGRGRGRGRGRGRGRG
result:
ok ok
Test #60:
score: 0
Accepted
time: 0ms
memory: 3344kb
input:
1 100 2 50 GGGRRGRRRGGGRGGRRGRRGGRRGRGGRGRGGGRRRRRRRGRGRRRGRRRGRGRGGRRRRGGGGGRRGGRGRGGGRGGRRGRGRGRGGRGGRRRGRGRG
output:
RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG
result:
ok ok
Subtask #3:
score: 0
Wrong Answer
Test #61:
score: 0
Wrong Answer
time: 0ms
memory: 3652kb
input:
79 100 3 7900 RRRRBBGGGRGRGRGRGGGGRBBRRRGBRGRGRBBRGGBRRBBRGRGRBBBRGRBBRBBBRGGBGGRBGBBGGGBRGBRRGBBBGGGGRGGGRGRGBBGG RGBRBGGGGGRBGRGBGGBGRBRBBRBBRRGRGGGBRRBRGRGBBBBRGGGGBGGRGGGGRRBRGRRGGRRBGBGBBGRRGBRBRBBGGRGBRGBRRBRR RBRRGGBGRRGRGGRRRBGGBRRRRGBRRGBGBBBBRBRBBRBRGRBBGRGRBGGBBRGBGRGBRGRRGRRRRRRBRRRGBBBB...
output:
BRBRGBGRGRGRGRGRGRGRBBGRBRGBBRBRBBGRGRGRBBGRGRGRGBGRGRGBBBGBBRGBGRBBGBGRGRGRGBBRGBGBGRGRBRGRBRBRGBGR RGBBBGRGRGRGRBRGRGBGRGRGBBBGRBRBRGRGRBBBRBRGBGBBRGRGBGRBRGRGRBBBRBRGRBRGRGRGBGRBRGRGRGBGRBRGRGBBRGRB BBBRGRGRBRGRGRBRBBGRGRBRBRGRBRGRGBGBBBBBGRGRGRGBGRGRGRGBGRGBGRGBBRBRGRBRBRBBBRBRGBGBGBGRGRBRGRBRBR...
result:
wrong answer there can't be two adjacent points on the grid with equal colors 0 2 1 2
Subtask #4:
score: 0
Wrong Answer
Test #91:
score: 0
Wrong Answer
time: 0ms
memory: 3416kb
input:
8 69 3 276 RGRBGRBRBRBRBGBRBRBRGRBRGRGRGRGRBRBGBRBGBGRBRGBGRBGBRGRGBRBGBGBGBRBRG RGRBGRBRBRBRBGBRBRBRGRBRGRGRGRGRBRBGBRBGBGRBRGBGRBGBRGRGBRBGBGBGBRBRG RGRBGRBRBRBRBGBRBRBRGRBRGRGRGRGRBRBGBRBGBGRBRGBGRBGBRGRGBRBGBGBGBRBRG RGRBGRBRBRBRBGBRBRBRGRBRGRGRGRGRBRBGBRBGBGRBRGBGRBGBRGRGBRBGBGBGBRBRG RGRBGRBRB...
output:
BRBBGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRBBBRGRBBGBBRBRGRGRGRGRGRGRG RGRGRBBBBBBBBGBBBBBBRBBBRBRBRBRBBBBGBBBGBGRGRGBGRGRGRGRGBBBGBGBGBBBBR BRBBGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRBBBRGRBBGBBRBRGRGRGRGRGRGRG RGRGRBBBBBBBBGBBBBBBRBBBRBRBRBRBBBBGBBBGBGRGRGBGRGRGRGRGBBBGBGBGBBBBR BRBBGRGRGRGRGRGRGRGR...
result:
wrong answer there can't be two adjacent points on the grid with equal colors 0 2 0 3
Subtask #5:
score: 0
Wrong Answer
Test #121:
score: 0
Wrong Answer
time: 0ms
memory: 3400kb
input:
9 68 3 306 GBRBGRBGGGRBRRRRBBGRBGRBBBRBRBBRRRBRRRBBRBRGBBGGGGBRGBBGBBRRRGBGBGBR GBRBGRBGGGRBRRRRBBGRBGRBBBRBRBBRRRBRRRBBRBRGBBGGGGBRGBBGBBRRRGBGBGBR GBRBGRBGGGRBRRRRBBGRBGRBBBRBRBBRRRBRRRBBRBRGBBGGGGBRGBBGBBRRRGBGBGBR GBRBGRBGGGRBRRRRBBGRBGRBBBRBRBBRRRBRRRBBRBRGBBGGGGBRGBBGBBRRRGBGBGBR GBRBGRBGGGRBR...
output:
RGRGRBBGRGRGRBRBBGRBBGRGBGRGRGBBRBBBRBBGRGRGBGRGRGBBRGBGBGRBRGBGBGBB GBBBGRGRGRBBBRBRGBGRGRBBGBBBBBGRBRGRBRGBBBBRGBGRGRGRGBGRGBBRBRGRGRGR RGRGRBBGRGRGRBRBBGRBBGRGBGRGRGBBRBBBRBBGRGRGBGRGRGBBRGBGBGRBRGBGBGBB GBBBGRGRGRBBBRBRGBGRGRBBGBBBBBGRBRGRBRGBBBBRGBGRGRGRGBGRGBBRBRGRGRGR RGRGRBBGRGRGRBRBBGRBBGRG...
result:
wrong answer there can't be two adjacent points on the grid with equal colors 0 5 0 6
Subtask #6:
score: 0
Wrong Answer
Test #151:
score: 0
Wrong Answer
time: 0ms
memory: 3364kb
input:
4 10 3 26 BGGRRBBRBG BGBGGBGRRB RBBBBBRGGR RGRBGGRGBB
output:
GRGRBBGRGR BGBGRGRBRG BBGBGBBRGR RGRGRGRGBG
result:
wrong answer there can't be two adjacent points on the grid with equal colors 0 4 0 5
Subtask #7:
score: 0
Wrong Answer
Test #181:
score: 0
Wrong Answer
time: 0ms
memory: 3364kb
input:
4 52 3 104 GRRGGGGBGRRBRGBRGRGRRBGBGBBRGGRRBBGBGBGBGGBRRRRBRRRG RGBGGGRGBGRBGRRBBBBRGRRBBBBGGBRGRBBRGGRBRGBRBGRBBGGR RBRGBGBGGRBBGGGRRRRBBRGRRGGBRGGRGRRGBRRRGRRBRGRGRBGG GRBBRRRRGGBRBBBGBBGGBRRGRGGBGGBRRGBRBBRRBGGBGBBBRRRR
output:
GRBRGRGBGRBBBRGRGRGRBBGBGBGRGRBRGBGBGBGBGRGRBRBBBRBR RGBGRGRGBGRGRBRGBGBBRBRGBGBGRGRGRGBBRGRGRGBBBGRGBGRB BBBRGRGRGRGBGRGRBRBBGRGRBRGBBRGRGRBRGRBRGRBBBRBRBBGR RBBGRBRBRGBBBGBGBGRGBBRGRGRGRGBBRGBBBGRBBGRGRGBGRBRB
result:
wrong answer there can't be two adjacent points on the grid with equal colors 0 2 1 2
Subtask #8:
score: 17
Accepted
Test #211:
score: 17
Accepted
time: 0ms
memory: 3480kb
input:
42 54 2 1134 GGRRGGGGGGGGRRGGRRRGGGRRGRRGGGGGGRRGGGGGGGGGGRGGRRRGRG RRRGGGRGGGRRRGGRRRRRRGGRGRGRGGRGGGRGRGRRGRRGGRGRRGGRRR RGGGRGRGGGRGGGGGRGGRGRGGGGGGGGGRRRGRRGGGRRGRGRGGGGGGRG RRGRGRRRRRRGGGGGGGRGGGRRRRGRGGRRGGGRGRRRRRGRRGRGRGGRGG GRGRGRGGGGGGGGRGGGGRGRRGRGRGGGGRGGRRGRRRGRRGRRRRRGGRRG RGGRRRGGGRGG...
output:
GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR RGRGRGRGRGRGRGRGRGRGRGRGR...
result:
ok ok
Test #212:
score: 0
Accepted
time: 1ms
memory: 3484kb
input:
70 95 2 3325 GRRGRGGGGGGRRGGRRGRGRGGRRGGRGGRRGRRRGGRGRGGGGRGRRRRGRGRGGGRRGGRRRGGGGRGRRRRRRRRGRRRGRRGGGRGRGGR GRGRRRGRGRGRGRRGGRRRRRGGRRGGGRGRRGGGRRRRRRRGGGRRRGRRRRRRGRRGGG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RGRGRGRGRGRGRGRGRG RGRGRGRGRGRGRGRGRGRG...
result:
ok ok
Test #214:
score: 0
Accepted
time: 0ms
memory: 3348kb
input:
22 87 2 957 RRGGGGRRRRRGRGRRRRGRGGGGGRGRGRGRGRRRRGGRRRGRRRGGGRRRRRRGGRRGGRRGRGGGGGGGGRRRRRGGGGGRGGR GGGRRRGRRRRRRGGGGGGRRGRGGRGGGGRRGRRGGGRRRRGRRRGGRRRGRGRGGRRGRGRRRGRGRGGGRRRRRRRRRGGGGGR RGRRGGGRGRRRGRGRGGRRRRGGRRRRGGRGGRGGGRGRRRRGRRRRRGRRRGGRGRRGRRRGRRGRRRRRGGGGRRRRGGGRGGR RRRRGGRGRGGRGRRGGRRGRGRR...
output:
GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG...
result:
ok ok
Test #215:
score: 0
Accepted
time: 0ms
memory: 3500kb
input:
46 36 2 828 RGRRRGGRRRRRGRRRRGRRRRRGRGRRGRRGRRGG GGRGGGRRGRGRGGGRRRGRRRRRRRGRGRRGRGRG RGRGGRRGGGRRGRRGGGGGGGRGRRGGRRGRRRRG RGGGRRGRRRGRRRRGGRGGRGRGGRRGGRGGGRRG GGRRGRGGRRGRRGRRGGRGGGRGRRRRRRRRRRGR RGGRGRRRRRGRGRRGGRGRGGGRGRGRGGGGRGGG GRGRGRGRGRRGGRGGRGRGGRRGRGRGRGGGGRRG RGRGRRRGGGRRRGRRRGRGGGRRRGRRG...
output:
RGRGRGR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RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG...
result:
ok ok
Test #219:
score: 0
Accepted
time: 0ms
memory: 3456kb
input:
46 13 2 299 RRRGGGGGRRGGG GRGGRRGGGRRRG GRRRRRGGRRRRG GGRRRGRRGRGRR RRRGRGGRGGRGG GGGGRRRGRGGGG RRRGRRRRRRGGR GRRGRRGRGRRGR GRRRRRRRRRGRR GGRGGRRGRRRRR GRRGGRGRGGGGG GGRGRRGRGRGRG RGGGRRRGGGRGG GRRRRGRGRGGRG GRGGGRGRRGGGR RRRRGGGGGGRGR GGGRRRRGGGGRR GGGGRRGRRRRGR RRGRRGRGGRRRR RRRRRGRRGGRRG GRRGGGRR...
output:
GRGRGRGRGRGRG RGRGRGRGRGRGR GRGRGRGRGRGRG RGRGRGRGRGRGR GRGRGRGRGRGRG RGRGRGRGRGRGR GRGRGRGRGRGRG RGRGRGRGRGRGR GRGRGRGRGRGRG RGRGRGRGRGRGR GRGRGRGRGRGRG RGRGRGRGRGRGR GRGRGRGRGRGRG RGRGRGRGRGRGR GRGRGRGRGRGRG RGRGRGRGRGRGR GRGRGRGRGRGRG RGRGRGRGRGRGR GRGRGRGRGRGRG RGRGRGRGRGRGR GRGRGRGRGRGRG RGRGRG...
result:
ok ok
Test #220:
score: 0
Accepted
time: 0ms
memory: 3292kb
input:
4 80 2 160 RRRRGRRRGRGGGGGRRRRGGGGRRRRGRGGRGRGRGRRGRRGRGRGRGGGRGRRRGRGGRGRRRRRRRGGRGRGRRRGG RRRGRRGRRGGRGGRRGRGGGRRRGGGRGGGGRGGRGRRGRGRGRRGGGRRRRGGRRRGRRGGRRRRRRGGRGGRGRGGG GGRGGGGRRGRGGGRRRRRRRGGRGRGRGRRRGRGRGRGGGGGGGGGRRRRGRRGGRRRRGGGGGGGGGRGGGRRRGRRR RGRGRGGGRGGRGGRGRGRGGRGRRRGRGRGGGGRRRRRGGRRGRG...
output:
GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR...
result:
ok ok
Test #221:
score: 0
Accepted
time: 0ms
memory: 3432kb
input:
28 24 2 336 GRRGRRGRGGRRRGRRRGGRRRRR GGRGRGRGGRGGGGGGGRRRGRGG GRRRGGGGRRGGRGGRGRGRRGRR GRGGGRGRGGGGRGGGRRGGRGGR GRRGRGRRGRRGRRGGRRRGRRRG GGRGGGGGGRRGRRRGRGGGGRRR RGRRGRRRRGRRRGRRRGRRRRGR GGRRGGRGRRRGGRGRRGRGRGGG RRGRGGGGGRGRRGRRGRGGRGRG GRGGRGGGRRGRGRRRGRRGGRRG GRRRGGRGRRGGGRRGRRGRRRGR RRGRRGRGRRRRG...
output:
RGRGRGRGRGRGRGRGRGRGRGRG GRGRGRGRGRGRGRGRGRGRGRGR RGRGRGRGRGRGRGRGRGRGRGRG GRGRGRGRGRGRGRGRGRGRGRGR RGRGRGRGRGRGRGRGRGRGRGRG GRGRGRGRGRGRGRGRGRGRGRGR RGRGRGRGRGRGRGRGRGRGRGRG GRGRGRGRGRGRGRGRGRGRGRGR RGRGRGRGRGRGRGRGRGRGRGRG GRGRGRGRGRGRGRGRGRGRGRGR RGRGRGRGRGRGRGRGRGRGRGRG GRGRGRGRGRGRGRGRGRGRGRGR ...
result:
ok ok
Test #222:
score: 0
Accepted
time: 1ms
memory: 3476kb
input:
52 64 2 1664 GRRRGRGRRGRGGRRRRGGRGGGRRRRGRRGGRRRRRRRRRGRGRRGRGRGRGGRRGRRRGRGG RGRGGRGRRGGRRRRRGGRGRGRRRRRRRRGGGRGGGRGRRGRGRGGRRGRRRRGRGGRGGGGG GRGRRRGRGGGGRRGGGRGGGRRGGGRRRGRRGRGGRGGGGRGGGRRGRRRRRGGGGRGGRGGG RRGRRRGRRGRRGRRRRRGGGRGRGGRGGGRRRRGRGGRGGGRRRGGGGGGGGRGRGGGGRGGG GRRRGGGRGRGRGGGGGGRGGGGGGGR...
output:
RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG...
result:
ok ok
Test #223:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
76 9 2 342 GGGGGRRGR RRGRGGRRR RRGRRRGGG RRRRGGRRG RRRRGGGGR RGGRRGGGG RGRRGGRRR RRGGGRRRR GGGGGGGRG GRGRRRGRG GGGRGRGGR GRGGRGRGR GRGGRRRRG GRRGRRGGG GRGRGGGGG RRRGRGGGG GGRGGRRRG GRRRGGRRR GRGRGRRRG RRRGRRRRR GRGGGRRRG RRRGGRGRG RGGGRRRRG RRRGRRGRR RGGGGGRGG RGGGGRRRG GRRGGRRRG RRRGRRRGR RGRGRRGRG...
output:
GRGRGRGRG RGRGRGRGR GRGRGRGRG RGRGRGRGR GRGRGRGRG RGRGRGRGR GRGRGRGRG RGRGRGRGR GRGRGRGRG RGRGRGRGR GRGRGRGRG RGRGRGRGR GRGRGRGRG RGRGRGRGR GRGRGRGRG RGRGRGRGR GRGRGRGRG RGRGRGRGR GRGRGRGRG RGRGRGRGR GRGRGRGRG RGRGRGRGR GRGRGRGRG RGRGRGRGR GRGRGRGRG RGRGRGRGR GRGRGRGRG RGRGRGRGR GRGRGRGRG RGRGRGRGR ...
result:
ok ok
Test #224:
score: 0
Accepted
time: 0ms
memory: 3288kb
input:
4 57 2 114 RGGRRRGGRRGRGRGGGGRRRRGGRRGRRRGRRGRRGGGGRRRGGRGGRRRGRRGRG GGRGRGGGGRGGRGGGGGRRGGRRGGGGRGGRGRRRRGGGGGGGRRRRGGGGRGGRR GGGGRGGRRGGRRRGGGRGRRGGGGGRRRGRRGGRRGGRGRGRGRRRRRRGRGRRGR GRRGRGRRGRGGGRGGRRRGGRGRGRRRGRRRGGGRRGRRRGGGRGGRRRGGRGGGG
output:
GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR
result:
ok ok
Test #225:
score: 0
Accepted
time: 0ms
memory: 3468kb
input:
24 6 2 72 RRRRGR GGGRGG RGRGGR GGGGRG GGRRGG RRGGRG GRRGGR GRGRGR RRGGRR RGRGRG RRRGRR RGRGRG RGRGGG RRRGRG GGGRRR RGGRGG GGRGRG RRRRRR RGRRRG GGRGGR GRRGGR RRRGRR GRGRRR GGGGGG
output:
GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG
result:
ok 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RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG...
result:
ok ok
Test #230:
score: 0
Accepted
time: 0ms
memory: 3368kb
input:
19 65 2 617 RGGGGGGRRRRRRGRGGRRGGRGGRRRGGRRGRGGRGRGGGRRGRGRRRGRGGRGRRGRRGRGGG RGGGGRRRGGRRGRGRRGGGRGGGRRRGGGRGRGGGRGRRGGRRGRRGRRGGRGRGRGRGRRGGR RGGRGGGRGGGGRRGRGGGRGGGGGGGGGRRGGRRRRRGGGGRGRGGRRRGGGGRGRGRRGGRGR GGRRRRGGGGGRRGRGGRGGGRGGRRRRGRGGGRRGGGGGRRGRRGGRGRGRGGRGRRGGGRRGG GGRGGGGRRRGGGRGGGRGGRRRR...
output:
RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG...
result:
ok ok
Test #231:
score: 0
Accepted
time: 0ms
memory: 3516kb
input:
39 6 2 117 RRGRGG RRRGGG GRRRGG RGRRRR GGGGRG GGGGRG GRRRRR GGGGRR RGGGGG RGGGRG GRRRRR RGRRGR GGGGGG RGRRRG GRGGGR GGRGGG RGRGRG GRRRRG RRRGGG GRGRRR GRGRGG GGGRGR GGGGRG GRRRGR RGGGGR GRRGGR GGRRGG GRGGRG GGRRGR RRGRRG RRGGGG GGGGRR RGRRRG RRGGGG RGGRRR RGRGRR GGRRGR GRRGGR RRGGGG
output:
GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR
result:
ok ok
Test #232:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
67 50 2 1675 GRRGRGRGGGGRRGRRGGGRGGGRRRGRRGRRGGRGGGGRGRRRGGRGGG RRRGGRRRGRRRGRGGGGRRRRGGGRRGGRRRGRGGGRGGGRGRGGRGGG GRRRGGRRGGGGGRGRRRGGGGGRGGGGRRGGRRRRGRGRGGRRRRRGRR GRRGGRGGRGGRRGGRRGRRRGGRRRGRRRGGGGGRRRRGRRGGRRRRGG RRGRRRRRGRRGGRGRGRGGGRGRGRGRRGGRRGGGGRGGRGGRGRGRRR RGRRRGRGGRRRRGRGGRGRGGGRGGRGRGRG...
output:
RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG...
result:
ok ok
Test #233:
score: 0
Accepted
time: 1ms
memory: 3644kb
input:
91 99 2 4504 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RRRRRRRRRGGG...
output:
GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR...
result:
ok ok
Test #240:
score: 0
Accepted
time: 0ms
memory: 3720kb
input:
100 100 2 5000 GGGGGGGGGGGGRRRRGGGGRRRRGGGGGGGGRRRRRRRRRRRRRRRRGGGGGGGGRRRRGGGGGGGGGGGGRRRRGGGGGGGGGGGGRRRRRRRRGGGG GGGGGGGGGGGGRRRRGGGGRRRRGGGGGGGGRRRRRRRRRRRRRRRRGGGGGGGGRRRRGGGGGGGGGGGGRRRRGGGGGGGGGGGGRRRRRRRRGGGG GGGGGGGGGGGGRRRRGGGGRRRRGGGGGGGGRRRRRRRRRRRRRRRRGGGGGGGGRRRRGGGGGGGGGGGGRRRRGGGGGGG...
output:
GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR...
result:
ok ok
Subtask #9:
score: 0
Wrong Answer
Test #241:
score: 0
Wrong Answer
time: 0ms
memory: 3628kb
input:
68 15 3 510 RRBGRGBBRBRGGGR GBRRRBBGBRBGBGR RGGGRBBBGGGGGBG BRRBRGRRGBRBGRR BRBBGBRBBRRRRRB GRRGGGGGGGGGGBR RBBRRBGRRRGRGRG GRGGGGRGRRGRRRB GGBRGBRBRRBRRBG RGRGBBBGGRGGRGB BRRGBGRGRGBGBBG GGRRBBBGRBRBBGB GBBRBBBBBBRRGBG BRBGGBBBRRBGGGB BBGGRBGBRRRBRBG BGGGBRRBRRGGRBG RRRBBBGRRBBBBRB GGRRRGRGGGBBRGB ...
output:
BRGRBRGBBBBRGRB RGRBRGBGBBBGBGR BRGRBBGBGRGRGBG BBRGRGRBRGRGRBR GRGBGBBBGRBRBRG RBRGRGRGRGRGRGR BBGRBBGRBRGRGRG RBRGRGRGRBRBRBB GRGRGBBBBRGRBBG RGRGBGBGRBRGRGB GRBRGRBRBRGRGBG RGRBBGBGRGRGBGB GBGRGBGBGBBRGBG BBBGRGBGRBBGRGB GBGRBBGBBRBBBBG BGRGBBRGRBRGRGR BRBBGBGRBBGBGRG RGRBRGRGRGBGRGB GRBBBBGRGRGB...
result:
wrong answer there can't be two adjacent points on the grid with equal colors 0 7 0 8