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.
Problems
B"You have an n xe2 x80 x89 xc3 x97 xe2 x80 x89m rectangle table, its cells are not initially painted. Your task is to paint all cells of the table. The resulting picture should be a tiling of the table with squares. More formally: Given n and m, find lexicographically minimum coloring of the table that meets the described properties. The first line contains two integers, n and m (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100). Print lexicographically minimum coloring of the table that meets the described conditions. One coloring (let's call it X) is considered lexicographically less than the other one (let's call it Y), if:"... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
6655903 |
linxy |
E |
May 19, 2014, 11:57 a.m. |
OK |
GNU C |
TESTS |
101 |
15 |
204800 |
|
2700 |
27532674 |
rTraining1997 |
E |
June 2, 2017, 11:07 p.m. |
OK |
GNU C++ |
TESTS |
101 |
15 |
0 |
|
2700 |
15281941 |
how_to_become_purple |
E |
Jan. 10, 2016, 3:56 p.m. |
OK |
GNU C++ |
TESTS |
101 |
15 |
0 |
|
2700 |
15143076 |
HappyNewYearMike |
E |
Dec. 31, 2015, 11:01 p.m. |
OK |
GNU C++ |
TESTS |
101 |
15 |
0 |
|
2700 |
14263478 |
vjudge4 |
E |
Nov. 15, 2015, 5:20 a.m. |
OK |
GNU C++ |
TESTS |
101 |
15 |
0 |
|
2700 |
14263475 |
vjudge3 |
E |
Nov. 15, 2015, 5:19 a.m. |
OK |
GNU C++ |
TESTS |
101 |
15 |
0 |
|
2700 |
14002019 |
130705009 |
E |
Nov. 1, 2015, 7:12 a.m. |
OK |
GNU C++ |
TESTS |
101 |
15 |
0 |
|
2700 |
11390605 |
gerw |
E |
June 2, 2015, 1:20 p.m. |
OK |
GNU C++ |
TESTS |
101 |
15 |
0 |
|
2700 |
8224897 |
sxczf |
E |
Oct. 14, 2014, 7:16 a.m. |
OK |
GNU C++ |
TESTS |
101 |
15 |
0 |
|
2700 |
8068993 |
vjudge3 |
E |
Oct. 3, 2014, 1:45 p.m. |
OK |
GNU C++ |
TESTS |
101 |
15 |
0 |
|
2700 |
20548410 |
PengsenMao |
E |
Sept. 12, 2016, 12:11 p.m. |
OK |
GNU C++ |
TESTS |
101 |
15 |
0 |
|
2700 |
9431579 |
aliasadiiii |
E |
Jan. 14, 2015, 7:29 p.m. |
OK |
GNU C++0x |
TESTS |
101 |
15 |
0 |
|
2700 |
7048875 |
jokkebk |
E |
July 8, 2014, 5:58 p.m. |
OK |
GNU C++0x |
TESTS |
101 |
15 |
0 |
|
2700 |
6934605 |
Farimart |
E |
June 21, 2014, 4:43 a.m. |
OK |
GNU C++0x |
TESTS |
101 |
15 |
0 |
|
2700 |
6728812 |
kondranin |
E |
May 28, 2014, 1:25 p.m. |
OK |
GNU C++0x |
TESTS |
101 |
15 |
0 |
|
2700 |
6657955 |
andreig |
E |
May 19, 2014, 2:07 p.m. |
OK |
GNU C++0x |
TESTS |
101 |
15 |
102400 |
|
2700 |
6689879 |
Pand9 |
E |
May 23, 2014, 11:03 p.m. |
OK |
GNU C++0x |
TESTS |
101 |
30 |
0 |
|
2700 |
9193687 |
Plumrain |
E |
Dec. 19, 2014, 5:59 a.m. |
OK |
GNU C++0x |
TESTS |
101 |
30 |
0 |
|
2700 |
10258271 |
cq_phqg |
E |
March 13, 2015, 1:34 p.m. |
OK |
GNU C++0x |
TESTS |
101 |
30 |
102400 |
|
2700 |
6689190 |
SebP |
E |
May 23, 2014, 7:20 p.m. |
OK |
GNU C++0x |
TESTS |
101 |
30 |
102400 |
|
2700 |
6650352 |
stan |
E |
May 18, 2014, 11:55 a.m. |
OK |
GNU C++0x |
TESTS |
101 |
30 |
1433600 |
|
2700 |
21665155 |
reku |
E |
Oct. 22, 2016, 11:24 a.m. |
OK |
GNU C++11 |
TESTS |
101 |
15 |
0 |
|
2700 |
19175946 |
vjudge5 |
E |
July 16, 2016, 3:35 p.m. |
OK |
GNU C++11 |
TESTS |
101 |
15 |
0 |
|
2700 |
19034779 |
rsola |
E |
July 11, 2016, 5:36 p.m. |
OK |
GNU C++11 |
TESTS |
101 |
15 |
0 |
|
2700 |
15851937 |
tun |
E |
Feb. 7, 2016, 2:23 a.m. |
OK |
GNU C++11 |
TESTS |
101 |
15 |
0 |
|
2700 |
15426533 |
Irkutsk_ISRU |
E |
Jan. 18, 2016, 12:09 p.m. |
OK |
GNU C++11 |
TESTS |
101 |
15 |
0 |
|
2700 |
15235852 |
Sammarize |
E |
Jan. 8, 2016, 11:16 a.m. |
OK |
GNU C++11 |
TESTS |
101 |
15 |
0 |
|
2700 |
13081164 |
qsqx |
E |
Sept. 18, 2015, 6:20 a.m. |
OK |
GNU C++11 |
TESTS |
101 |
15 |
0 |
|
2700 |
32525965 |
McGinn |
E |
Nov. 21, 2017, 1:01 p.m. |
OK |
GNU C++11 |
TESTS |
101 |
15 |
102400 |
|
2700 |
32525637 |
McGinn |
E |
Nov. 21, 2017, 12:49 p.m. |
OK |
GNU C++11 |
TESTS |
101 |
15 |
102400 |
|
2700 |
15429076 |
VastoLorde95 |
E |
Jan. 18, 2016, 3:19 p.m. |
OK |
GNU C++11 |
TESTS |
101 |
15 |
102400 |
|
2700 |
21892366 |
Farhod_Farmon |
E |
Oct. 30, 2016, 12:40 p.m. |
OK |
GNU C++14 |
TESTS |
101 |
15 |
0 |
|
2700 |
32518654 |
vjudge2 |
E |
Nov. 21, 2017, 7:36 a.m. |
OK |
GNU C++14 |
TESTS |
101 |
15 |
102400 |
|
2700 |
22519904 |
Gilmour |
E |
Nov. 27, 2016, 4:01 a.m. |
OK |
GNU C++14 |
TESTS |
101 |
15 |
102400 |
|
2700 |
22196904 |
FourFourTwo |
E |
Nov. 13, 2016, 5:04 p.m. |
OK |
GNU C++14 |
TESTS |
101 |
15 |
102400 |
|
2700 |
32219960 |
AbdulQader_Q |
E |
Nov. 11, 2017, 12:54 p.m. |
OK |
GNU C++14 |
TESTS |
101 |
15 |
204800 |
|
2700 |
32519462 |
vjudge1 |
E |
Nov. 21, 2017, 8:20 a.m. |
OK |
GNU C++14 |
TESTS |
101 |
15 |
204800 |
|
2700 |
32518982 |
vjudge5 |
E |
Nov. 21, 2017, 7:54 a.m. |
OK |
GNU C++14 |
TESTS |
101 |
15 |
204800 |
|
2700 |
31940441 |
blue__legend |
E |
Nov. 1, 2017, 6:59 a.m. |
OK |
GNU C++14 |
TESTS |
101 |
15 |
204800 |
|
2700 |
26888483 |
KhaledKEE |
E |
May 5, 2017, 8:24 p.m. |
OK |
GNU C++14 |
TESTS |
101 |
15 |
204800 |
|
2700 |
20644611 |
wrinx |
E |
Sept. 15, 2016, 4:51 p.m. |
OK |
GNU C++14 |
TESTS |
101 |
15 |
307200 |
|
2700 |
67251447 |
AriaB |
E |
Dec. 19, 2019, 7:18 p.m. |
OK |
GNU C++17 |
TESTS |
101 |
30 |
0 |
|
2700 |
36755323 |
vjudge3 |
E |
March 30, 2018, 5:43 p.m. |
OK |
GNU C++17 |
TESTS |
101 |
30 |
3481600 |
|
2700 |
36755303 |
vjudge3 |
E |
March 30, 2018, 5:42 p.m. |
OK |
GNU C++17 |
TESTS |
101 |
30 |
3481600 |
|
2700 |
50138606 |
Stroustrup |
E |
Feb. 18, 2019, 8:10 p.m. |
OK |
GNU C++17 |
TESTS |
101 |
31 |
0 |
|
2700 |
47527967 |
reza |
E |
Dec. 26, 2018, 5:03 p.m. |
OK |
GNU C++17 |
TESTS |
101 |
31 |
0 |
|
2700 |
47297878 |
aviroop123 |
E |
Dec. 20, 2018, 12:51 p.m. |
OK |
GNU C++17 |
TESTS |
101 |
31 |
0 |
|
2700 |
47521916 |
ragen |
E |
Dec. 26, 2018, 1:34 p.m. |
OK |
GNU C++17 |
TESTS |
101 |
31 |
0 |
|
2700 |
67001398 |
ayk16 |
E |
Dec. 16, 2019, 5:55 a.m. |
OK |
GNU C++17 |
TESTS |
101 |
31 |
0 |
|
2700 |
57955843 |
Juve45 |
E |
July 29, 2019, 6:40 p.m. |
OK |
GNU C++17 |
TESTS |
101 |
31 |
0 |
|
2700 |
51664734 |
roll_no_1 |
E |
March 22, 2019, 5:21 a.m. |
OK |
GNU C++17 |
TESTS |
101 |
31 |
0 |
|
2700 |
6677513 |
erikr |
E |
May 21, 2014, 9:10 p.m. |
OK |
Haskell |
TESTS |
101 |
62 |
1126400 |
|
2700 |
6651799 |
altais |
E |
May 18, 2014, 4:48 p.m. |
OK |
Java 7 |
TESTS |
101 |
77 |
0 |
|
2700 |
6714808 |
shubham0007 |
E |
May 26, 2014, 10:27 a.m. |
OK |
Java 7 |
TESTS |
101 |
78 |
0 |
|
2700 |
7446309 |
edorundo |
E |
Aug. 14, 2014, 2:30 p.m. |
OK |
Java 7 |
TESTS |
101 |
140 |
102400 |
|
2700 |
9941411 |
niyaznigmatul |
E |
Feb. 20, 2015, 7:08 p.m. |
OK |
Java 8 |
TESTS |
101 |
124 |
0 |
|
2700 |
6658747 |
vaseninlol |
E |
May 19, 2014, 4:39 p.m. |
OK |
Java 8 |
TESTS |
101 |
155 |
0 |
|
2700 |
6677970 |
sbaraian |
E |
May 22, 2014, 12:46 a.m. |
OK |
Mono C# |
TESTS |
101 |
93 |
819200 |
|
2700 |
10034680 |
camypaper |
E |
Feb. 26, 2015, 4:10 p.m. |
OK |
MS C# |
TESTS |
101 |
62 |
2150400 |
|
2700 |
6650022 |
azukun |
E |
May 18, 2014, 10:27 a.m. |
OK |
MS C# |
TESTS |
101 |
92 |
2560000 |
|
2700 |
6948521 |
Scorpy |
E |
June 23, 2014, 4:16 p.m. |
OK |
MS C++ |
TESTS |
101 |
15 |
0 |
|
2700 |
6687696 |
lych123 |
E |
May 23, 2014, 1:48 p.m. |
OK |
MS C++ |
TESTS |
101 |
15 |
0 |
|
2700 |
6667556 |
Elun |
E |
May 21, 2014, 2:10 p.m. |
OK |
MS C++ |
TESTS |
101 |
15 |
0 |
|
2700 |
6661217 |
peaceful |
E |
May 20, 2014, 7:20 a.m. |
OK |
MS C++ |
TESTS |
101 |
15 |
0 |
|
2700 |
6657835 |
ADJA |
E |
May 19, 2014, 1:46 p.m. |
OK |
MS C++ |
TESTS |
101 |
15 |
0 |
|
2700 |
6657809 |
ADJA |
E |
May 19, 2014, 1:42 p.m. |
OK |
MS C++ |
TESTS |
101 |
15 |
0 |
|
2700 |
6654268 |
mikemirzayanouv |
E |
May 19, 2014, 4:57 a.m. |
OK |
MS C++ |
TESTS |
101 |
15 |
0 |
|
2700 |
6652710 |
Rivx |
E |
May 18, 2014, 6:34 p.m. |
OK |
MS C++ |
TESTS |
101 |
15 |
0 |
|
2700 |
7276276 |
csehydrogen |
E |
July 28, 2014, 9:34 a.m. |
OK |
MS C++ |
TESTS |
101 |
15 |
0 |
|
2700 |
6661151 |
peaceful |
E |
May 20, 2014, 6:59 a.m. |
OK |
MS C++ |
TESTS |
101 |
15 |
102400 |
|
2700 |
6717380 |
maxfloat |
E |
May 26, 2014, 6:08 p.m. |
OK |
Python 2 |
TESTS |
101 |
61 |
307200 |
|
2700 |
6660584 |
butler |
E |
May 20, 2014, 3:42 a.m. |
OK |
Python 2 |
TESTS |
101 |
62 |
409600 |
|
2700 |
6782326 |
nwi |
E |
June 2, 2014, 2:07 p.m. |
OK |
Python 2 |
TESTS |
101 |
108 |
307200 |
|
2700 |
6707567 |
ekzhang |
E |
May 24, 2014, 10:14 p.m. |
OK |
Python 2 |
TESTS |
101 |
234 |
716800 |
|
2700 |
remove filters
Back to search problems