School Team Contest 2 (Winter Computer School 2010/11)

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
44 School Team Contest 2 (Winter Computer School 2010/11) FINISHED False 18000 487277980 Nov. 6, 2010, 11 a.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 614 ) J Triminoes PROGRAMMING constructive algorithms greedy 2000

There are many interesting tasks on domino tilings. For example, an interesting fact is known. Let us take a standard chessboard ( 8 × 8 ) and cut exactly two squares out of it. It turns out that the resulting board can always be tiled using dominoes 1 × 2 , if the two cut out squares are of the same color, otherwise it is impossible. Petya grew bored with dominoes, that's why he took a chessboard (not necessarily 8 × 8 ), cut some squares out of it and tries to tile it using triminoes. Triminoes are reactangles 1 × 3 (or 3 × 1 , because triminoes can be rotated freely), also the two extreme squares of a trimino are necessarily white and the square in the middle is black. The triminoes are allowed to put on the chessboard so that their squares matched the colors of the uncut squares of the chessboard, and also the colors must match: the black squares must be matched with the black ones only and the white ones — with the white squares. The triminoes must not protrude above the chessboard or overlap each other. All the uncut squares of the board must be covered with triminoes. Help Petya find out if it is possible to tile his board using triminos in the described way and print one of the variants of tiling. The first line contains two integers n and m ( 1 ≤ n , m ≤ 1000 ) — the board size. Next n lines contain m symbols each and represent the board description. If some position contains ".", then the square in this position has been cut out. Symbol "w" stands for a white square, "b" stands for a black square. It is guaranteed that through adding the cut squares can result in a correct chessboard (i.e. with alternating black and white squares), thought, perhaps, of a non-standard size. If at least one correct tiling exists, in the first line print "YES" (without quotes), and then — the tiling description. The description must contain n lines, m symbols in each. The cut out squares, as well as in the input data, are marked by ".". To denote triminoes symbols "

Tutorials

School Team Contest #2 (Winter Computer School 2010/2011): tutorial of A-E, H, J.

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
185643 Jigers J Nov. 11, 2010, 12:40 p.m. OK Delphi TESTS 50 60 1843200 2000
184720 Algorithm J Nov. 6, 2010, 4:25 p.m. OK Delphi TESTS 50 60 7680000 2000
184157 pershik J Nov. 6, 2010, 2:54 p.m. OK Delphi TESTS 50 80 4915200 2000
184677 Nikolai J Nov. 6, 2010, 4:06 p.m. OK Delphi TESTS 50 80 7680000 2000
183735 BLIZZARD GR1n map J Nov. 6, 2010, 1:54 p.m. OK Delphi TESTS 50 80 8908800 2000
185453 dronoff J Nov. 8, 2010, 3:39 p.m. OK Delphi TESTS 50 90 2969600 2000
183995 mingaleg Genyaz syovich J Nov. 6, 2010, 2:29 p.m. OK Delphi TESTS 50 90 5939200 2000
4803365 wuyunfan666 J Oct. 16, 2013, 7:26 a.m. OK Delphi TESTS 50 92 1024000 2000
182281 tourist J Nov. 6, 2010, 11:53 a.m. OK Delphi TESTS 50 110 5939200 2000
256411 agul J Jan. 21, 2011, 3:46 p.m. OK Delphi TESTS 50 110 6041600 2000
183076 ZumZoom taras.klaskovsky iRomchig J Nov. 6, 2010, 12:48 p.m. OK FPC TESTS 50 80 2867200 2000
184584 Kraev Roschin Petrushenko J Nov. 6, 2010, 3:55 p.m. OK FPC TESTS 50 80 9932800 2000
183109 BrightDays Lapenkov Surogatov_S J Nov. 6, 2010, 12:51 p.m. OK FPC TESTS 50 90 1843200 2000
184838 ViruZ alexej xtpynx J Nov. 6, 2010, 6:35 p.m. OK FPC TESTS 50 90 2867200 2000
184052 Luzan Isachenko Tatyana_Petrashko J Nov. 6, 2010, 2:37 p.m. OK FPC TESTS 50 90 10035200 2000
183708 myltik kenny59 Anton_Rodick J Nov. 6, 2010, 1:49 p.m. OK FPC TESTS 50 90 10240000 2000
1771049 scorpion J June 8, 2012, 11:42 a.m. OK FPC TESTS 50 110 29184000 2000
3965941 studytolive meodorewan conan_96 J June 27, 2013, 4:36 a.m. OK FPC TESTS 50 124 13209600 2000
3965937 xuanthuy_sp96 J June 27, 2013, 4:34 a.m. OK FPC TESTS 50 124 13209600 2000
183946 vilcheuski eduard vilnasta J Nov. 6, 2010, 2:21 p.m. OK FPC TESTS 50 140 10035200 2000
670128 scottai1 J Sept. 6, 2011, 1:34 a.m. OK GNU C TESTS 50 50 2355200 2000
183631 plokzfadai zpl1 chensqi J Nov. 6, 2010, 1:38 p.m. OK GNU C TESTS 50 130 105779200 2000
185086 LRYBC J Nov. 7, 2010, 7:19 a.m. OK GNU C TESTS 50 380 166707200 2000
4819925 yyx J Oct. 18, 2013, 2:03 p.m. OK GNU C++ TESTS 50 30 1024000 2000
4128002 vjudge2 J July 21, 2013, 9:14 a.m. OK GNU C++ TESTS 50 31 2048000 2000
3350893 hjx13908486019 J March 18, 2013, 11:57 a.m. OK GNU C++ TESTS 50 31 2048000 2000
2828456 BenZ J Dec. 26, 2012, 10:03 a.m. OK GNU C++ TESTS 50 31 2048000 2000
2817943 asklzxn2 J Dec. 23, 2012, 6:17 a.m. OK GNU C++ TESTS 50 31 5017600 2000
2792768 shmily552255 J Dec. 19, 2012, 2:07 a.m. OK GNU C++ TESTS 50 31 6041600 2000
2827552 dc. J Dec. 26, 2012, 3:07 a.m. OK GNU C++ TESTS 50 31 13209600 2000
3298340 CHONPS J March 13, 2013, 11:51 a.m. OK GNU C++ TESTS 50 46 1024000 2000
2910863 moondance J Jan. 13, 2013, 11:06 a.m. OK GNU C++ TESTS 50 46 1024000 2000
2879583 pty J Jan. 7, 2013, 2:36 a.m. OK GNU C++ TESTS 50 46 2048000 2000
2907013 xlk J Jan. 12, 2013, 7:56 a.m. OK GNU C++0x TESTS 50 31 2048000 2000
2754558 apia J Dec. 12, 2012, 12:42 p.m. OK GNU C++0x TESTS 50 31 2048000 2000
7237733 xiaohao123 J July 25, 2014, 4:13 a.m. OK GNU C++0x TESTS 50 62 1024000 2000
7208021 a654889339 J July 23, 2014, 10:22 a.m. OK GNU C++0x TESTS 50 62 1024000 2000
1219873 Archon.JK J Feb. 23, 2012, 5 p.m. OK GNU C++0x TESTS 50 130 15667200 2000
7669694 ducki13 J Sept. 2, 2014, 6:05 p.m. OK GNU C++0x TESTS 50 154 2048000 2000
7951633 M.Mahdi J Sept. 25, 2014, 10:46 p.m. OK GNU C++0x TESTS 50 186 13414400 2000
2790474 llj_bash J Dec. 18, 2012, 11:11 a.m. OK GNU C++0x TESTS 50 312 2048000 2000
455757 Farzam HRM J May 15, 2011, 5:55 a.m. OK GNU C++0x TESTS 50 530 3481600 2000
9698892 Akirus J Feb. 3, 2015, 9:45 a.m. OK GNU C++0x TESTS 50 780 2457600 2000
59442494 qq1010903229 J Aug. 25, 2019, 11:50 a.m. OK GNU C++11 TESTS 50 62 1843200 2000
15757929 Y-MP J Feb. 2, 2016, 8:35 p.m. OK GNU C++11 TESTS 50 62 1843200 2000
17083328 freebsdx J April 1, 2016, 1:20 a.m. OK GNU C++11 TESTS 50 62 2969600 2000
33232377 hawkomg J Dec. 14, 2017, 7:13 a.m. OK GNU C++11 TESTS 50 62 3072000 2000
35873083 ______u______ J March 3, 2018, 7:23 a.m. OK GNU C++11 TESTS 50 62 3993600 2000
35872976 ______n______ J March 3, 2018, 7:22 a.m. OK GNU C++11 TESTS 50 62 3993600 2000
35872337 _____i_____ J March 3, 2018, 7:09 a.m. OK GNU C++11 TESTS 50 62 3993600 2000
35872196 _____k_____ J March 3, 2018, 7:04 a.m. OK GNU C++11 TESTS 50 62 3993600 2000
35863239 ______k______ J March 2, 2018, 10:42 p.m. OK GNU C++11 TESTS 50 62 3993600 2000
35863220 ______h______ J March 2, 2018, 10:42 p.m. OK GNU C++11 TESTS 50 62 3993600 2000
27046398 Minology J May 12, 2017, 4:10 a.m. OK GNU C++14 TESTS 50 62 2048000 2000
62696079 vjudge4 J Oct. 16, 2019, 2:55 p.m. OK GNU C++14 TESTS 50 92 1024000 2000
56015583 sorry_im_smurfing J June 24, 2019, 8:54 p.m. OK GNU C++14 TESTS 50 92 2048000 2000
58791815 guanhuai04 J Aug. 14, 2019, 2:48 a.m. OK GNU C++14 TESTS 50 154 9113600 2000
36031381 Emma194 J March 7, 2018, 2:29 a.m. OK GNU C++14 TESTS 50 156 6963200 2000
34211447 Cyanic J Jan. 16, 2018, 3:03 a.m. OK GNU C++14 TESTS 50 156 6963200 2000
31473982 Cmise J Oct. 18, 2017, 8:44 a.m. OK GNU C++14 TESTS 50 156 6963200 2000
42714715 tshr J Sept. 9, 2018, 6:23 p.m. OK GNU C++14 TESTS 50 186 2969600 2000
42714743 vjudge5 J Sept. 9, 2018, 6:24 p.m. OK GNU C++14 TESTS 50 186 3276800 2000
31682404 Fullmetal_Algorithmist J Oct. 24, 2017, 1:08 p.m. OK GNU C++14 TESTS 50 186 3891200 2000
37910570 Svenny J May 5, 2018, 3:51 p.m. OK GNU C++17 TESTS 50 62 4710400 2000
67594701 RNS_CUS J Dec. 25, 2019, 10:11 a.m. OK GNU C++17 TESTS 50 92 1024000 2000
53792310 Curnurx J May 5, 2019, 1:32 p.m. OK GNU C++17 TESTS 50 122 5017600 2000
62696515 DebSourav33 J Oct. 16, 2019, 2:56 p.m. OK GNU C++17 TESTS 50 124 1024000 2000
57144638 kenimo J July 16, 2019, 12:29 p.m. OK GNU C++17 TESTS 50 124 20684800 2000
53786816 Curnurx J May 5, 2019, 10:37 a.m. OK GNU C++17 TESTS 50 186 23347200 2000
37857571 ruo J May 3, 2018, 9:10 a.m. OK GNU C++17 TESTS 50 280 4403200 2000
59616645 DeadInsideOnTest993 J Aug. 28, 2019, 12:55 p.m. OK GNU C++17 TESTS 50 310 1843200 2000
42832375 I_love_Y_UME J Sept. 13, 2018, 1:35 p.m. OK GNU C++17 TESTS 50 342 19046400 2000
37857202 ruo J May 3, 2018, 8:50 a.m. OK GNU C++17 TESTS 50 374 4403200 2000
750568 islam-al-aarag J Oct. 8, 2011, 9:57 a.m. OK Java 6 TESTS 50 230 35532800 2000
184846 caustique nehalem J Nov. 6, 2010, 6:50 p.m. OK Java 6 TESTS 50 230 43417600 2000
183512 SergeyLazarev J Nov. 6, 2010, 1:27 p.m. OK Java 6 TESTS 50 250 43315200 2000
185257 KiRiN rofi uwi UC2 J Nov. 7, 2010, 8:01 p.m. OK Java 6 TESTS 50 280 43417600 2000
183022 Aksenov239 J Nov. 6, 2010, 12:42 p.m. OK Java 6 TESTS 50 300 43417600 2000
185329 Eugene_nik J Nov. 8, 2010, 7:56 a.m. OK Java 6 TESTS 50 340 43417600 2000
686885 shevchen J Nov. 6, 2010, 12:53 p.m. OK Java 6 TESTS 50 380 35532800 2000
183997 tsimox Alte MegaDiablo J Nov. 6, 2010, 2:29 p.m. OK Java 6 TESTS 50 440 43520000 2000
184113 niyaznigmatul J Nov. 6, 2010, 2:47 p.m. OK Java 6 TESTS 50 450 61644800 2000
750618 mostafa_fahim J Oct. 8, 2011, 10:14 a.m. OK Java 6 TESTS 50 1200 54579200 2000
18889999 MedoN11 Badry J July 4, 2016, 10:09 p.m. OK Java 7 TESTS 50 310 4198400 2000
4634795 ykg2910 J Oct. 1, 2013, 10:28 p.m. OK Java 7 TESTS 50 404 307200 2000
5593237 Zyflair J Dec. 31, 2013, 3:11 p.m. OK Java 7 TESTS 50 404 614400 2000
20804263 Ahmad_Elsagheer J Sept. 21, 2016, 6:55 p.m. OK Java 8 TESTS 50 310 0 2000
183606 xiaoyoulei zlly Bearjie J Nov. 6, 2010, 1:35 p.m. OK MS C++ TESTS 50 60 2355200 2000
185855 IgorYevchynets J Dec. 6, 2010, 10:18 a.m. OK MS C++ TESTS 50 60 3481600 2000
183979 SpookyCookie Medium J Nov. 6, 2010, 2:26 p.m. OK MS C++ TESTS 50 80 2355200 2000
182763 xhae ainu7 Astein domeng J Nov. 6, 2010, 12:22 p.m. OK MS C++ TESTS 50 80 6348800 2000
185695 yechencheng J Nov. 12, 2010, 12:12 p.m. OK MS C++ TESTS 50 110 2560000 2000
1996530 Timur_Sitdikov J Aug. 10, 2012, 4:42 a.m. OK MS C++ TESTS 50 140 2457600 2000
183367 antonkov J Nov. 6, 2010, 1:13 p.m. OK MS C++ TESTS 50 140 8601600 2000
2629851 kesongyu J Nov. 23, 2012, 3:32 a.m. OK MS C++ TESTS 50 156 2252800 2000
183747 NikitaD J Nov. 6, 2010, 1:55 p.m. OK MS C++ TESTS 50 170 3379200 2000
530779 aan93 J July 7, 2011, 4:29 p.m. OK MS C++ TESTS 50 190 3686400 2000

remove filters

Back to search problems