ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1968. Glass Pyramid

Test for WA 5
Posted by [SESC]Fstilus ♂♊🎧皇 3 Dec 2016 23:26
//Input:
12 10
0 0 0 0 0 0 0 0 0 0
0 0 0 1 1 1 1 0 0 0
0 0 2 3 1 1 1 0 0 0
0 0 2 4 2 0 0 0 0 0
0 0 0 2 3 1 0 0 0 0
0 0 0 0 1 1 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0

//Correct output:
WWWWW
WRWWW
WWRWW
WWWWW
WWWWW
WWWWW

WRRW
WRWW
WWWW
WWWW
WWWW

RWW
WWW
WWW
WWW

RW
WW
WW

W
W
Re: Test for WA 5
Posted by Lightless [Samara SAU] 2 Oct 2022 19:54
Another one:

8 12
1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1