Codeforces Round 290 (Div. 2)

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
510 Codeforces Round 290 (Div. 2) FINISHED False 7500 314717404 Feb. 2, 2015, 4:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 14273 ) B Fox And Two Dots PROGRAMMING dfs and similar 1500

B'Fox Ciel is playing a mobile puzzle game called "Two Dots". The basic levels are played on a board of size n xe2 x80 x89 xc3 x97 xe2 x80 x89m cells, like this: Each cell contains a dot that has some color. We will use different uppercase Latin characters to express different colors. The key of this game is to find a cycle that contain dots of same color. Consider 4 blue dots on the picture forming a circle as an example. Formally, we call a sequence of dots d1, xe2 x80 x89d2, xe2 x80 x89..., xe2 x80 x89dk a cycle if and only if it meets the following condition: Determine if there exists a cycle on the field. The first line contains two integers n and m (2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8950): the number of rows and columns of the board. Then n lines follow, each line contains a string consisting of m characters, expressing colors of dots in each line. Each character is an uppercase Latin letter. Output "Yes" if there exists a cycle, and "No" otherwise. In first sample test all 'A ' form a cycle. In second sample there is no such cycle. The third sample is displayed on the picture above ( 'Y ' = Yellow, 'B ' = Blue, 'R ' = Red).'...

Tutorials

Codeforces Round #290 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
45798080 vjudge5 B Nov. 16, 2018, 11:55 a.m. OK Clang++17 Diagnostics TESTS 24 46 1536000 1500
57635598 vjudge1 B July 24, 2019, 10:37 a.m. OK Clang++17 Diagnostics TESTS 24 187 1024000 1500
27747031 vjudge3 B June 13, 2017, 1:50 a.m. OK FPC TESTS 24 15 0 1500
27746933 vjudge5 B June 13, 2017, 1:38 a.m. OK FPC TESTS 24 15 0 1500
18640103 gamo B June 22, 2016, 4:21 a.m. OK FPC TESTS 24 15 102400 1500
18762731 ice_tea B June 28, 2016, 6:07 a.m. OK FPC TESTS 24 15 204800 1500
35148083 vjudge2 B Feb. 11, 2018, 9:45 a.m. OK FPC TESTS 24 15 1638400 1500
35142154 vjudge3 B Feb. 11, 2018, 4:19 a.m. OK FPC TESTS 24 15 1638400 1500
35140737 vjudge2 B Feb. 11, 2018, 1:55 a.m. OK FPC TESTS 24 15 1638400 1500
35140633 vjudge1 B Feb. 11, 2018, 1:46 a.m. OK FPC TESTS 24 15 1638400 1500
35518981 luogu_bot4 B Feb. 20, 2018, 11:04 a.m. OK FPC TESTS 24 15 1638400 1500
35151292 vjudge5 B Feb. 11, 2018, 11:27 a.m. OK FPC TESTS 24 15 1638400 1500
19569933 GusztavSzmolik B Aug. 2, 2016, 12:56 a.m. OK GNU C TESTS 24 15 102400 1500
18995594 dodafone B July 10, 2016, 5:20 a.m. OK GNU C TESTS 24 15 102400 1500
21649269 Koshlendra7 B Oct. 21, 2016, 5:53 p.m. OK GNU C TESTS 24 15 102400 1500
27207699 Froz B May 19, 2017, 4:45 a.m. OK GNU C TESTS 24 15 204800 1500
35066421 rainboy B Feb. 8, 2018, 4:51 p.m. OK GNU C TESTS 24 15 1843200 1500
23383738 yougaindra B Dec. 28, 2016, 5:55 p.m. OK GNU C TESTS 24 15 1945600 1500
24143180 jikim123789 B Jan. 26, 2017, 5:32 a.m. OK GNU C TESTS 24 15 2355200 1500
36417734 The.Last.Wizard B March 19, 2018, 5:54 p.m. OK GNU C TESTS 24 15 3481600 1500
27253559 maratonando3 B May 20, 2017, 9:17 p.m. OK GNU C TESTS 24 15 24883200 1500
27820108 Rizro B June 16, 2017, 8:12 a.m. OK GNU C TESTS 24 30 102400 1500
30657577 vjudge1 B Sept. 24, 2017, 5:58 a.m. OK GNU C++ TESTS 24 15 0 1500
40512971 vjudge2 B July 18, 2018, 12:01 p.m. OK GNU C++ TESTS 24 15 0 1500
31326971 pmad1234 B Oct. 15, 2017, 2:53 a.m. OK GNU C++ TESTS 24 15 0 1500
30658363 vjudge3 B Sept. 24, 2017, 6:51 a.m. OK GNU C++ TESTS 24 15 0 1500
30375839 nhho B Sept. 16, 2017, 4:04 a.m. OK GNU C++ TESTS 24 15 0 1500
27794624 felven B June 15, 2017, 1:32 p.m. OK GNU C++ TESTS 24 15 0 1500
27420268 maratonando B May 28, 2017, 10:01 p.m. OK GNU C++ TESTS 24 15 0 1500
26919291 vjudge2 B May 7, 2017, 8:33 a.m. OK GNU C++ TESTS 24 15 0 1500
26877539 vjudge2 B May 5, 2017, 9:50 a.m. OK GNU C++ TESTS 24 15 0 1500
26877389 vjudge5 B May 5, 2017, 9:41 a.m. OK GNU C++ TESTS 24 15 0 1500
66250395 kaiboy B Dec. 4, 2019, 1:09 a.m. OK GNU C11 TESTS 24 31 0 1500
64869222 shimul_duet B Nov. 14, 2019, 7:33 a.m. OK GNU C11 TESTS 24 31 102400 1500
57927826 1024863041 B July 29, 2019, 7:43 a.m. OK GNU C11 TESTS 24 31 102400 1500
54254644 patilc125 B May 16, 2019, 7:14 p.m. OK GNU C11 TESTS 24 31 204800 1500
26922105 vjudge4 B May 7, 2017, 11:24 a.m. OK GNU C11 TESTS 24 31 204800 1500
47822919 hehe6764 B Jan. 1, 2019, 7:13 p.m. OK GNU C11 TESTS 24 31 204800 1500
43474842 kiennd9 B Sept. 27, 2018, 2:24 a.m. OK GNU C11 TESTS 24 1606 25190400 1500
22813488 pikmike B Dec. 8, 2016, 3:12 p.m. OK GNU C++11 TESTS 24 15 0 1500
40582415 fawzy20 B July 20, 2018, 3:17 p.m. OK GNU C++11 TESTS 24 15 0 1500
30677276 ayushboss B Sept. 24, 2017, 3:20 p.m. OK GNU C++11 TESTS 24 15 0 1500
30012722 chetan52720 B Sept. 2, 2017, 12:29 p.m. OK GNU C++11 TESTS 24 15 0 1500
27832055 HOMIARA_RUBY B June 16, 2017, 7:19 p.m. OK GNU C++11 TESTS 24 15 0 1500
27724463 famunoz13 B June 11, 2017, 4:51 p.m. OK GNU C++11 TESTS 24 15 0 1500
27696598 famunoz13 B June 9, 2017, 9:16 p.m. OK GNU C++11 TESTS 24 15 0 1500
27418985 maratonando B May 28, 2017, 7:41 p.m. OK GNU C++11 TESTS 24 15 0 1500
27397431 aliahmad95 B May 27, 2017, 9:38 p.m. OK GNU C++11 TESTS 24 15 0 1500
21825194 Meowl B Oct. 27, 2016, 2:19 p.m. OK GNU C++11 TESTS 24 15 0 1500
32234247 wi_lius B Nov. 12, 2017, 4:15 a.m. OK GNU C++14 TESTS 24 15 0 1500
29525015 realcomplex B Aug. 17, 2017, 11:31 a.m. OK GNU C++14 TESTS 24 15 0 1500
22877229 giorgosgiapis B Dec. 11, 2016, 11:53 a.m. OK GNU C++14 TESTS 24 15 0 1500
32364001 Bouhmid B Nov. 16, 2017, 7:29 p.m. OK GNU C++14 TESTS 24 15 0 1500
44960755 DmitrijsV B Oct. 27, 2018, 4:20 p.m. OK GNU C++14 TESTS 24 15 0 1500
46235667 vjudge2 B Nov. 26, 2018, 2:25 a.m. OK GNU C++14 TESTS 24 15 0 1500
49970006 CNH_FlyingTuwu B Feb. 16, 2019, 1:01 a.m. OK GNU C++14 TESTS 24 15 0 1500
51353271 vjudge2 B March 16, 2019, 1:37 a.m. OK GNU C++14 TESTS 24 15 0 1500
53015019 vjudge3 B April 19, 2019, 1:48 p.m. OK GNU C++14 TESTS 24 15 0 1500
54079025 harshit15 B May 14, 2019, 12:19 a.m. OK GNU C++14 TESTS 24 15 0 1500
54281213 heno239 B May 17, 2019, 1:29 p.m. OK GNU C++17 TESTS 24 15 0 1500
55517193 xolodec B June 13, 2019, 6:11 a.m. OK GNU C++17 TESTS 24 15 0 1500
69930474 vjudge3 B Jan. 31, 2020, 11:18 p.m. OK GNU C++17 TESTS 24 15 0 1500
51099781 ahmedibrahim404 B March 9, 2019, 6:24 p.m. OK GNU C++17 TESTS 24 15 0 1500
52499155 vjudge2 B April 8, 2019, 3:11 p.m. OK GNU C++17 TESTS 24 15 0 1500
64191830 SA_AD B Nov. 4, 2019, 8:03 a.m. OK GNU C++17 TESTS 24 15 102400 1500
61465502 vjudge2 B Sept. 29, 2019, 10:14 a.m. OK GNU C++17 TESTS 24 15 102400 1500
57640559 vjudge1 B July 24, 2019, 12:28 p.m. OK GNU C++17 TESTS 24 15 102400 1500
69075027 vjudge3 B Jan. 19, 2020, 2:20 a.m. OK GNU C++17 TESTS 24 15 102400 1500
67062803 saynaaa B Dec. 17, 2019, 9:51 a.m. OK GNU C++17 TESTS 24 15 102400 1500
60163983 rejjjer B Sept. 6, 2019, 10:09 a.m. OK Go TESTS 24 46 0 1500
63129056 120405217 B Oct. 22, 2019, 1:39 p.m. OK Go TESTS 24 62 0 1500
20534969 pavel.rosputko B Sept. 11, 2016, 3:20 p.m. OK Haskell TESTS 24 15 8396800 1500
22811872 Menschenkindlein B Dec. 8, 2016, 2 p.m. OK Haskell TESTS 24 15 44851200 1500
20535033 pavel.rosputko B Sept. 11, 2016, 3:24 p.m. OK Haskell TESTS 24 31 8499200 1500
22799108 Menschenkindlein B Dec. 7, 2016, 11:21 p.m. OK Haskell TESTS 24 31 44851200 1500
22806338 opudalo B Dec. 8, 2016, 9:46 a.m. OK Haskell TESTS 24 140 8396800 1500
22932707 kigorw B Dec. 13, 2016, 6:14 p.m. OK Haskell TESTS 24 1669 8396800 1500
22918917 kigorw B Dec. 13, 2016, 3:36 a.m. OK Haskell TESTS 24 1746 8396800 1500
22918872 kigorw B Dec. 13, 2016, 3:30 a.m. OK Haskell TESTS 24 1903 8396800 1500
18444301 anuj64 B June 14, 2016, 6:14 a.m. OK Java 7 TESTS 24 108 39219200 1500
18648180 daiict B June 22, 2016, 2:45 p.m. OK Java 7 TESTS 24 124 0 1500
18170903 divp B May 31, 2016, 3:35 p.m. OK Java 7 TESTS 24 156 39321600 1500
19649688 ehapmgs B Aug. 5, 2016, 10:30 a.m. OK Java 7 TESTS 24 280 45465600 1500
65449817 an09mous B Nov. 20, 2019, 5:35 p.m. OK Java 8 TESTS 24 108 0 1500
63880983 vjudge2 B Oct. 30, 2019, 8:57 p.m. OK Java 8 TESTS 24 109 0 1500
62967700 Azakarka B Oct. 20, 2019, 5:34 a.m. OK Java 8 TESTS 24 109 0 1500
58895410 vvenkai B Aug. 16, 2019, 7:21 a.m. OK Java 8 TESTS 24 109 0 1500
58196803 Mhmmd.itani B Aug. 3, 2019, 1:14 a.m. OK Java 8 TESTS 24 109 0 1500
54734905 Seco_seco B May 28, 2019, 4:11 a.m. OK Java 8 TESTS 24 109 0 1500
54499115 jenish9599 B May 22, 2019, 7:30 p.m. OK Java 8 TESTS 24 109 0 1500
68211833 mayankarora21 B Jan. 4, 2020, 7:46 p.m. OK Java 8 TESTS 24 109 0 1500
68211406 mayankarora21 B Jan. 4, 2020, 7:33 p.m. OK Java 8 TESTS 24 109 0 1500
66316610 Oom B Dec. 5, 2019, 1:18 p.m. OK Java 8 TESTS 24 109 0 1500
41980147 ArJento B Aug. 23, 2018, 12:30 a.m. OK Kotlin TESTS 24 171 1024000 1500
22793490 dzharvis B Dec. 7, 2016, 5:32 p.m. OK Kotlin TESTS 24 217 22732800 1500
44420984 nemars B Oct. 16, 2018, 10:39 p.m. OK Mono C# TESTS 24 62 102400 1500
64455358 kolokolo21kolo B Nov. 7, 2019, 8:32 a.m. OK Mono C# TESTS 24 77 0 1500
20431581 Chubcheg B Sept. 7, 2016, 8:37 a.m. OK MS C# TESTS 24 62 2764800 1500
23578376 artsin666 B Jan. 6, 2017, 7:55 a.m. OK MS C# TESTS 24 124 11980800 1500
22671996 Foxy B Dec. 3, 2016, 8:22 a.m. OK MS C++ TESTS 24 15 102400 1500
67654997 vjudge1 B Dec. 26, 2019, 1:35 p.m. OK MS C++ TESTS 24 15 102400 1500
47615984 vjudge3 B Dec. 28, 2018, 10:30 a.m. OK MS C++ TESTS 24 15 102400 1500
27774476 vjudge2 B June 14, 2017, 1:08 p.m. OK MS C++ TESTS 24 15 102400 1500
27186415 Capitan B May 17, 2017, 8:11 p.m. OK MS C++ TESTS 24 15 102400 1500
22671995 Foxy B Dec. 3, 2016, 8:22 a.m. OK MS C++ TESTS 24 15 102400 1500
22045818 peter.shaburov B Nov. 5, 2016, 12:32 a.m. OK MS C++ TESTS 24 15 102400 1500
21951567 Mhamadli B Oct. 31, 2016, 9:46 p.m. OK MS C++ TESTS 24 15 102400 1500
19436088 dan-dan B July 27, 2016, 7:49 a.m. OK MS C++ TESTS 24 15 102400 1500
19377857 Yougoslavie B July 24, 2016, 6:34 a.m. OK MS C++ TESTS 24 15 102400 1500
51161957 Clickname B March 11, 2019, 12:46 p.m. OK MS C++ 2017 TESTS 24 31 0 1500
57629584 vjudge1 B July 24, 2019, 8:18 a.m. OK MS C++ 2017 TESTS 24 31 0 1500
67790321 vjudge2 B Dec. 28, 2019, 2:24 p.m. OK MS C++ 2017 TESTS 24 31 0 1500
57632541 vjudge2 B July 24, 2019, 9:17 a.m. OK MS C++ 2017 TESTS 24 31 0 1500
55393233 Still_Theory B June 10, 2019, 10:39 a.m. OK MS C++ 2017 TESTS 24 31 102400 1500
54071250 CtrlAlt B May 13, 2019, 4:22 p.m. OK MS C++ 2017 TESTS 24 31 102400 1500
57713455 pznb B July 25, 2019, 1:30 a.m. OK MS C++ 2017 TESTS 24 31 102400 1500
57640734 vjudge1 B July 24, 2019, 12:32 p.m. OK MS C++ 2017 TESTS 24 31 102400 1500
57629122 vjudge5 B July 24, 2019, 8:10 a.m. OK MS C++ 2017 TESTS 24 31 102400 1500
69246695 vjudge4 B Jan. 21, 2020, 1:07 p.m. OK MS C++ 2017 TESTS 24 31 204800 1500
22922870 Tetiana B Dec. 13, 2016, 9:09 a.m. OK PyPy 2 TESTS 24 78 1638400 1500
22823159 mariana-scorp B Dec. 8, 2016, 11:33 p.m. OK PyPy 2 TESTS 24 109 3891200 1500
22709627 alyaxey B Dec. 5, 2016, 11:02 a.m. OK PyPy 2 TESTS 24 109 14540800 1500
22806425 diunko B Dec. 8, 2016, 9:51 a.m. OK PyPy 2 TESTS 24 124 34099200 1500
44754207 vjudge3 B Oct. 23, 2018, 10:38 p.m. OK PyPy 2 TESTS 24 139 2150400 1500
44754196 gvilardefarias B Oct. 23, 2018, 10:37 p.m. OK PyPy 2 TESTS 24 140 2150400 1500
55226102 vjudge1 B June 7, 2019, 1:32 a.m. OK PyPy 2 TESTS 24 155 4608000 1500
22830068 mariana-scorp B Dec. 9, 2016, 9:38 a.m. OK PyPy 2 TESTS 24 156 3891200 1500
40819238 Onesh0t B July 26, 2018, 9:36 p.m. OK PyPy 2 TESTS 24 171 921600 1500
53861133 raj1307 B May 7, 2019, 8:26 p.m. OK PyPy 2 TESTS 24 202 25804800 1500
46587310 polmpolmpi B Dec. 4, 2018, 1:54 p.m. OK PyPy 3 TESTS 24 124 921600 1500
26742006 vjudge4 B April 29, 2017, 6:57 a.m. OK PyPy 3 TESTS 24 124 25497600 1500
47884199 nikonist B Jan. 3, 2019, 8:33 p.m. OK PyPy 3 TESTS 24 139 921600 1500
47677035 LobnaAmiri B Dec. 29, 2018, 9:48 a.m. OK PyPy 3 TESTS 24 139 921600 1500
46896261 hamdi.miladi24 B Dec. 11, 2018, 9:24 a.m. OK PyPy 3 TESTS 24 139 921600 1500
46879662 mahdi97 B Dec. 10, 2018, 6:36 p.m. OK PyPy 3 TESTS 24 139 921600 1500
46857231 cedric96 B Dec. 10, 2018, 3:37 p.m. OK PyPy 3 TESTS 24 139 921600 1500
46857116 masmoudi B Dec. 10, 2018, 3:32 p.m. OK PyPy 3 TESTS 24 139 921600 1500
46853910 masmoudi B Dec. 10, 2018, 1:42 p.m. OK PyPy 3 TESTS 24 139 921600 1500
47958379 xumouyi B Jan. 5, 2019, 7:49 a.m. OK PyPy 3 TESTS 24 140 2662400 1500
33648227 laoliumang B Dec. 26, 2017, 1:43 p.m. OK Python 2 TESTS 24 46 4608000 1500
29902643 aeshak84 B Aug. 29, 2017, 8:49 p.m. OK Python 2 TESTS 24 61 2048000 1500
24626539 lucasncabral B Feb. 13, 2017, 11:34 a.m. OK Python 2 TESTS 24 61 5222400 1500
24630764 ffosilva B Feb. 13, 2017, 3:22 p.m. OK Python 2 TESTS 24 61 6041600 1500
24539650 AndreLopes B Feb. 9, 2017, 2:24 a.m. OK Python 2 TESTS 24 61 6041600 1500
24539233 gabrielm19 B Feb. 9, 2017, 1:44 a.m. OK Python 2 TESTS 24 61 6041600 1500
29902839 aeshak84 B Aug. 29, 2017, 9:02 p.m. OK Python 2 TESTS 24 62 2048000 1500
24728384 Mainarac B Feb. 16, 2017, 11:49 p.m. OK Python 2 TESTS 24 62 5222400 1500
24708250 RonaldoMPF B Feb. 16, 2017, 2:31 a.m. OK Python 2 TESTS 24 62 5222400 1500
24707283 augusto B Feb. 16, 2017, 12:31 a.m. OK Python 2 TESTS 24 62 5222400 1500
26370272 blueset B April 15, 2017, 4:41 a.m. OK Python 3 TESTS 24 61 5939200 1500
27699675 NevadaStreets B June 10, 2017, 4:08 a.m. OK Python 3 TESTS 24 62 307200 1500
18632136 aptxczh B June 21, 2016, 2:53 p.m. OK Python 3 TESTS 24 62 614400 1500
18535716 HeavyCan B June 17, 2016, 4:37 a.m. OK Python 3 TESTS 24 62 614400 1500
18533682 darkria B June 17, 2016, 12:53 a.m. OK Python 3 TESTS 24 62 716800 1500
18544230 Utenaq B June 17, 2016, 2:01 p.m. OK Python 3 TESTS 24 62 921600 1500
28679116 Christopher-Perkins B July 18, 2017, 10:07 p.m. OK Python 3 TESTS 24 62 4608000 1500
25492120 PAPICHbogdoti2 B March 15, 2017, 7:36 a.m. OK Python 3 TESTS 24 62 4915200 1500
29247433 Qumeric B Aug. 6, 2017, 6:51 p.m. OK Python 3 TESTS 24 62 5324800 1500
18406689 ChemJeff B June 13, 2016, 6:18 a.m. OK Python 3 TESTS 24 62 5324800 1500
19606035 pvasilyev B Aug. 3, 2016, 10:11 p.m. OK Scala TESTS 24 311 0 1500
30575656 MaxHeap B Sept. 21, 2017, 11:38 a.m. OK Scala TESTS 24 919 0 1500

remove filters

Back to search problems