Unknown Language Round 3

Solutions are presented as using the least memory and the fastest execution time. It also takes the top 10 most recent solutions from each language. If you want to limit to a specific index, click the "Solved" button and go to that problem.

ContestId
Name
Phase
Frozen
Duration (Seconds)
Relative Time
Start Time
100 Unknown Language Round 3 FINISHED False 10800 464400023 July 30, 2011, 6 a.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 93 ) H Battleship PROGRAMMING *special dfs and similar implementation 2200

Do you know the game Battleship? If no, look into Wikipedia article http://en.wikipedia.org/wiki/Battleship_(game). You are given the positions of ships on a 10 × 10 board for playing Battleship. According to the rules, the board should contain the following ships: one of size 4 ( 4 × 1 or 1 × 4 rectangle), two of size 3 ( 3 × 1 or 1 × 3 rectangles), three of size 2 ( 2 × 1 or 1 × 2 rectangles), four of size 1 ( 1 × 1 rectangles). The ships should not 'bend', touch each other or overlap in any way. Each ship can be oriented horizontaly or verticaly. Your task is to check whether the given set of boards meets the given conditions. The first line contains number n ( 1 ≤ n ≤ 10 ) — the number of boards. Each board is described by 10 lines containing 10 characters each. The symbol "0" stands for an empty square and the symbol "*" stands for a square occupied by a ship. The descriptions of boards are separated with empty lines. Print n lines YES or NO. Print the first word if the board meets the given conditions; otherwise print the second word.

Tutorials

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
3818150 yermak0v H June 3, 2013, 9:25 a.m. OK Pike TESTS 7 109 102400 2200
731913 shinian H Sept. 30, 2011, 3:41 p.m. OK Pike TESTS 7 110 6656000 2200
671985 buko H Sept. 7, 2011, 10:51 a.m. OK Pike TESTS 7 110 6656000 2200
669538 watashi H Sept. 5, 2011, 2:50 p.m. OK Pike TESTS 7 110 6656000 2200
576948 susl H Aug. 3, 2011, 3:11 a.m. OK Pike TESTS 7 110 6656000 2200
575920 alexander-nsk94 H Aug. 2, 2011, 9:44 a.m. OK Pike TESTS 7 110 6656000 2200
573305 JoKe H July 30, 2011, 7:11 p.m. OK Pike TESTS 7 110 6656000 2200
573216 opiekacz H July 30, 2011, 5:29 p.m. OK Pike TESTS 7 110 6656000 2200
572672 LemonTree H July 30, 2011, 8:59 a.m. OK Pike TESTS 7 110 6656000 2200
572593 dolphinigle H July 30, 2011, 8:56 a.m. OK Pike TESTS 7 110 6656000 2200

remove filters

Back to search problems