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 |
|---|---|---|---|---|---|---|
| 48 | School Personal Contest #3 (Winter Computer School 2010/11) - Codeforces Beta Round 45 (ACM-ICPC Rules) | FINISHED | False | 10800 | 484264823 | Dec. 12, 2010, 8 a.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 184 ) | H | Black and White | PROGRAMMING | constructive algorithms | 2600 |
According to the legends the king of Berland Berl I was noted for his love of beauty and order. One day he ordered to tile the palace hall's floor where balls and receptions used to take place with black and white tiles according to a regular geometrical pattern invented by him. However, as is after the case, due to low financing there were only a black and b white tiles delivered to the palace. The other c tiles were black and white (see the picture). The initial plan failed! Having learned of that, the king gave a new command: tile the floor with the available tiles so that no black side of a tile touched a white one. The tiles are squares of one size 1 × 1 , every black and white tile can be rotated in one of the four ways. The court programmer was given the task to work out the plan of tiling and he coped with the task and didn't suffer the consequences of disobedience. And can you cope with it? The first line contains given integers n and m ( 1 ≤ n , m ≤ 100 ) which represent the sizes of the rectangle that needs to be tiled. The next line contains non-negative numbers a , b and c , a + b + c = nm , c ≥ m . Print 2 n lines containing 2 m characters each — the tiling scheme. Every tile is represented by a square 2 × 2 in the following manner (the order corresponds to the order of the picture above): |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 221171 | PAG | H | Dec. 13, 2010, 11:44 a.m. | OK | Delphi | TESTS | 70 | 30 | 819200 | 2600 | |
| 256204 | agul | H | Jan. 21, 2011, 1:02 p.m. | OK | Delphi | TESTS | 70 | 30 | 921600 | 2600 | |
| 3234906 | konstantanter | H | March 3, 2013, 3:04 p.m. | OK | GNU C++ | TESTS | 70 | 15 | 0 | 2600 | |
| 3384143 | vjudge5 | H | March 23, 2013, 7:11 a.m. | OK | GNU C++ | TESTS | 70 | 15 | 102400 | 2600 | |
| 3383966 | vjudge4 | H | March 23, 2013, 6:49 a.m. | OK | GNU C++ | TESTS | 70 | 15 | 102400 | 2600 | |
| 3383920 | vjudge2 | H | March 23, 2013, 6:34 a.m. | OK | GNU C++ | TESTS | 70 | 15 | 102400 | 2600 | |
| 13811727 | 130705009 | H | Oct. 23, 2015, 4:01 p.m. | OK | GNU C++ | TESTS | 70 | 30 | 0 | 2600 | |
| 5630730 | zhj | H | Jan. 7, 2014, 4:22 a.m. | OK | GNU C++ | TESTS | 70 | 30 | 102400 | 2600 | |
| 221670 | Ra16bit | H | Dec. 16, 2010, 6:50 p.m. | OK | GNU C++ | TESTS | 70 | 30 | 1331200 | 2600 | |
| 1476172 | vjudge2 | H | April 4, 2012, 1:48 p.m. | OK | GNU C++ | TESTS | 70 | 30 | 1433600 | 2600 | |
| 1476166 | abczz | H | April 4, 2012, 1:47 p.m. | OK | GNU C++ | TESTS | 70 | 30 | 1433600 | 2600 | |
| 959944 | tmt514 | H | Dec. 16, 2011, 6:45 a.m. | OK | GNU C++ | TESTS | 70 | 30 | 1433600 | 2600 | |
| 2882086 | Archon.JK | H | Jan. 8, 2013, 6:28 a.m. | OK | GNU C++0x | TESTS | 70 | 15 | 0 | 2600 | |
| 16058550 | tun | H | Feb. 16, 2016, 3:46 p.m. | OK | GNU C++11 | TESTS | 70 | 30 | 102400 | 2600 | |
| 12069977 | HellKitsune | H | July 15, 2015, 10:32 a.m. | OK | GNU C++11 | TESTS | 70 | 30 | 102400 | 2600 | |
| 11586297 | wdk | H | June 14, 2015, 7:15 p.m. | OK | GNU C++11 | TESTS | 70 | 30 | 102400 | 2600 | |
| 27526932 | 423555290 | H | June 2, 2017, 3:29 p.m. | OK | GNU C++11 | TESTS | 70 | 30 | 204800 | 2600 | |
| 20365845 | data_h | H | Sept. 3, 2016, 4:14 p.m. | OK | GNU C++11 | TESTS | 70 | 60 | 307200 | 2600 | |
| 20163693 | ITDOI | H | Aug. 25, 2016, 8:55 p.m. | OK | GNU C++11 | TESTS | 70 | 60 | 2150400 | 2600 | |
| 57906951 | lopare | H | July 28, 2019, 6:01 p.m. | OK | GNU C++11 | TESTS | 70 | 62 | 0 | 2600 | |
| 46029358 | luogu_bot2 | H | Nov. 21, 2018, 12:54 p.m. | OK | GNU C++11 | TESTS | 70 | 62 | 0 | 2600 | |
| 44907114 | irkstepanov | H | Oct. 26, 2018, 11:59 a.m. | OK | GNU C++11 | TESTS | 70 | 62 | 102400 | 2600 | |
| 38414465 | Klungs | H | May 19, 2018, 2:16 a.m. | OK | GNU C++11 | TESTS | 70 | 62 | 614400 | 2600 | |
| 23280734 | stostap | H | Dec. 24, 2016, 11:41 p.m. | OK | GNU C++14 | TESTS | 70 | 30 | 1945600 | 2600 | |
| 33194100 | Cmise | H | Dec. 12, 2017, 7:07 p.m. | OK | GNU C++14 | TESTS | 70 | 30 | 2048000 | 2600 | |
| 56015821 | sorry_im_smurfing | H | June 24, 2019, 9:05 p.m. | OK | GNU C++14 | TESTS | 70 | 62 | 0 | 2600 | |
| 41535758 | .ckodser. | H | Aug. 12, 2018, 5:39 p.m. | OK | GNU C++14 | TESTS | 70 | 62 | 102400 | 2600 | |
| 55978370 | artur.socha | H | June 23, 2019, 7 p.m. | OK | GNU C++14 | TESTS | 70 | 62 | 204800 | 2600 | |
| 41500513 | dorostmishe | H | Aug. 11, 2018, 4:53 p.m. | OK | GNU C++14 | TESTS | 70 | 62 | 2048000 | 2600 | |
| 23494158 | Ali.Pi | H | Jan. 2, 2017, 6:47 a.m. | OK | GNU C++14 | TESTS | 70 | 62 | 2969600 | 2600 | |
| 38065480 | ruo | H | May 9, 2018, 8:38 a.m. | OK | GNU C++17 | TESTS | 70 | 60 | 3993600 | 2600 | |
| 63979937 | hjk1030 | H | Nov. 1, 2019, 9:55 a.m. | OK | GNU C++17 | TESTS | 70 | 92 | 0 | 2600 | |
| 220163 | OgieKako | H | Dec. 12, 2010, 10:50 a.m. | OK | Java 6 | TESTS | 70 | 90 | 43315200 | 2600 | |
| 353211 | A.K.Goharshady | H | March 24, 2011, 10:32 a.m. | OK | Mono C# | TESTS | 70 | 130 | 5836800 | 2600 | |
| 18633790 | 2016 | H | June 21, 2016, 5:01 p.m. | OK | MS C++ | TESTS | 70 | 30 | 102400 | 2600 | |
| 755467 | arshuaz | H | Oct. 11, 2011, 12:45 p.m. | OK | MS C++ | TESTS | 70 | 30 | 1433600 | 2600 | |
| 221827 | moondy | H | Dec. 21, 2010, 2:05 p.m. | OK | MS C++ | TESTS | 70 | 30 | 1536000 | 2600 | |
| 13210890 | NVAL | H | Sept. 24, 2015, 9:11 p.m. | OK | MS C++ | TESTS | 70 | 60 | 0 | 2600 |
Back to search problems