Codeforces Round 130 (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
208 Codeforces Round 130 (Div. 2) FINISHED False 7800 394122563 July 23, 2012, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1373 ) B Solitaire PROGRAMMING dfs and similar dp 1800

B'A boy named Vasya wants to play an old Russian solitaire called "Accordion". In this solitaire, the player must observe the following rules: Vasya has already shuffled the cards and put them on the table, help him understand whether completing this solitaire is possible or not. The first input line contains a single integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8952) -- the number of cards in Vasya 's deck. The next line contains n space-separated strings c1, xe2 x80 x89c2, xe2 x80 x89..., xe2 x80 x89cn, where string ci describes the i-th card on the table. Each string ci consists of exactly two characters, the first one represents the card 's value, the second one represents its suit. Cards on the table are numbered from left to right. A card 's value is specified by one of these characters: "2", "3", "4", "5", "6", "7", "8", "9", "T", "J", "Q", "K", "A". A card 's suit is specified by one of these characters: "S", "D", "H", "C". It is not guaranteed that the deck has all possible cards. Also, the cards in Vasya 's deck can repeat. On a single line print the answer to the problem: string "YES" (without the quotes) if completing the solitaire is possible, string "NO" (without the quotes) otherwise. In the first sample you can act like that: In the second sample there is no way to complete the solitaire.'...

Tutorials

4930

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
50999018 chaorenhaha B March 8, 2019, 5:52 a.m. OK FPC TESTS 49 31 60416000 1800
20307570 rainboy B Aug. 31, 2016, 4:27 p.m. OK GNU C TESTS 49 46 45056000 1800
26499710 hgp04875611 B April 19, 2017, 3:54 p.m. OK GNU C++ TESTS 49 15 2355200 1800
26499639 hgp04875611 B April 19, 2017, 3:51 p.m. OK GNU C++ TESTS 49 15 2355200 1800
26499588 hgp04875611 B April 19, 2017, 3:49 p.m. OK GNU C++ TESTS 49 15 2355200 1800
26342720 vjudge5 B April 13, 2017, 3:27 p.m. OK GNU C++ TESTS 49 15 2355200 1800
26316645 nswojvjudge3 B April 12, 2017, 12:09 p.m. OK GNU C++ TESTS 49 15 2355200 1800
32774983 vjudge3 B Nov. 29, 2017, 8:19 a.m. OK GNU C++ TESTS 49 15 2764800 1800
21823651 vjudge2 B Oct. 27, 2016, 1:52 p.m. OK GNU C++ TESTS 49 15 9216000 1800
21823566 vjudge1 B Oct. 27, 2016, 1:49 p.m. OK GNU C++ TESTS 49 15 9216000 1800
21820799 vjudge5 B Oct. 27, 2016, 12:08 p.m. OK GNU C++ TESTS 49 15 9216000 1800
21820790 vjudge5 B Oct. 27, 2016, 12:08 p.m. OK GNU C++ TESTS 49 15 9216000 1800
30578883 vjudge4 B Sept. 21, 2017, 1:22 p.m. OK GNU C++11 TESTS 49 15 307200 1800
22729009 pikmike B Dec. 6, 2016, 11:37 a.m. OK GNU C++11 TESTS 49 15 819200 1800
29323332 abdoali99 B Aug. 10, 2017, 10:07 a.m. OK GNU C++11 TESTS 49 15 3481600 1800
26499398 14310520317 B April 19, 2017, 3:39 p.m. OK GNU C++11 TESTS 49 15 10035200 1800
20398035 somanynames B Sept. 5, 2016, 11:06 a.m. OK GNU C++11 TESTS 49 30 1433600 1800
21820457 vjudge4 B Oct. 27, 2016, 11:56 a.m. OK GNU C++11 TESTS 49 30 103936000 1800
36412501 saddam B March 19, 2018, 1:59 p.m. OK GNU C++11 TESTS 49 31 4915200 1800
57930099 luogu_bot5 B July 29, 2019, 8:25 a.m. OK GNU C++11 TESTS 49 31 9216000 1800
48413246 vjudge2 B Jan. 15, 2019, 8:58 a.m. OK GNU C++11 TESTS 49 31 9216000 1800
44487834 Lee2004 B Oct. 18, 2018, 1:18 p.m. OK GNU C++11 TESTS 49 31 9216000 1800
26342709 zoro_123 B April 13, 2017, 3:26 p.m. OK GNU C++14 TESTS 49 15 2355200 1800
26342061 zoro_123 B April 13, 2017, 2:49 p.m. OK GNU C++14 TESTS 49 15 2355200 1800
25553589 wrinx B March 16, 2017, 3:30 p.m. OK GNU C++14 TESTS 49 15 2355200 1800
23563646 Ali.Pi B Jan. 5, 2017, 10:06 p.m. OK GNU C++14 TESTS 49 15 33587200 1800
27722270 srinu37 B June 11, 2017, 2:12 p.m. OK GNU C++14 TESTS 49 30 1433600 1800
36800848 alimamdouh1809 B April 1, 2018, 2:16 p.m. OK GNU C++14 TESTS 49 30 3686400 1800
37009987 IGVA B April 6, 2018, 1:33 a.m. OK GNU C++14 TESTS 49 30 3788800 1800
44890348 vjudge2 B Oct. 26, 2018, 2:50 a.m. OK GNU C++14 TESTS 49 31 307200 1800
42151848 MetaBro B Aug. 27, 2018, 12:36 p.m. OK GNU C++14 TESTS 49 31 409600 1800
21785444 McGinn B Oct. 26, 2016, 2:22 a.m. OK GNU C++14 TESTS 49 31 512000 1800
50698198 armoking B March 2, 2019, 7:15 p.m. OK GNU C++17 TESTS 49 31 204800 1800
47392677 ruo B Dec. 23, 2018, 9:06 a.m. OK GNU C++17 TESTS 49 31 307200 1800
55688978 Oblivion_me B June 17, 2019, 5:02 p.m. OK GNU C++17 TESTS 49 31 409600 1800
52546187 limage B April 9, 2019, 9:45 p.m. OK GNU C++17 TESTS 49 31 409600 1800
46046529 ay2306 B Nov. 22, 2018, 2:47 a.m. OK GNU C++17 TESTS 49 31 409600 1800
52883821 yuhta B April 17, 2019, 3:17 a.m. OK GNU C++17 TESTS 49 31 819200 1800
62457108 aliencoder22 B Oct. 13, 2019, 6:53 a.m. OK GNU C++17 TESTS 49 31 1536000 1800
64174545 AK. B Nov. 3, 2019, 8:07 p.m. OK GNU C++17 TESTS 49 31 1638400 1800
40883473 kzvd4729 B July 28, 2018, 11:45 a.m. OK GNU C++17 TESTS 49 31 1638400 1800
65338138 tnakao B Nov. 19, 2019, 9:47 a.m. OK GNU C++17 TESTS 49 31 7782400 1800
47234107 KulikAlex B Dec. 18, 2018, 7:31 p.m. OK Java 8 TESTS 49 124 0 1800
29694858 Shavkat_Aminov B Aug. 22, 2017, 11:20 p.m. OK Java 8 TESTS 49 124 0 1800
58198488 derrick20 B Aug. 3, 2019, 2:30 a.m. OK Java 8 TESTS 49 140 0 1800
23466459 74zadua B Dec. 31, 2016, 9:08 a.m. OK Java 8 TESTS 49 155 20684800 1800
25359197 rkgboy B March 9, 2017, 12:07 p.m. OK Java 8 TESTS 49 155 20889600 1800
25348341 PriyamV_181 B March 8, 2017, 7:11 p.m. OK Java 8 TESTS 49 156 20992000 1800
49963565 Anonymous B Feb. 15, 2019, 7:28 p.m. OK Java 8 TESTS 49 170 0 1800
51735403 Zamasu123 B March 23, 2019, 1:54 a.m. OK Java 8 TESTS 49 420 9216000 1800
36724903 Tampere B March 29, 2018, 3:21 p.m. OK MS C++ TESTS 49 15 55705600 1800
41376517 tufigu B Aug. 8, 2018, 9:23 p.m. OK MS C++ TESTS 49 46 1536000 1800
48441015 vjudge2 B Jan. 16, 2019, 3:25 a.m. OK MS C++ TESTS 49 46 36659200 1800
57751233 ergatis B July 25, 2019, 2:51 p.m. OK Ocaml TESTS 49 171 32153600 1800
54372241 Mohamed_Ayman B May 19, 2019, 7:07 a.m. OK Python 3 TESTS 49 109 409600 1800
35733411 sayeed910 B Feb. 26, 2018, 1:32 p.m. OK Python 3 TESTS 49 109 7577600 1800
42123863 Mk_Python_v1 B Aug. 26, 2018, 1:56 p.m. OK Python 3 TESTS 49 124 102400 1800
64204360 MinecraftFuns B Nov. 4, 2019, 12:25 p.m. OK Python 3 TESTS 49 124 307200 1800
56418960 homoeconomicus B July 2, 2019, 6:23 a.m. OK Python 3 TESTS 49 124 307200 1800
35847265 ______n______ B March 2, 2018, 4:40 p.m. OK Ruby TESTS 49 62 7168000 1800
35847264 ______u______ B March 2, 2018, 4:40 p.m. OK Ruby TESTS 49 62 7168000 1800
35844647 _____k_____ B March 2, 2018, 3:33 p.m. OK Ruby TESTS 49 62 7168000 1800
35844646 _____i_____ B March 2, 2018, 3:33 p.m. OK Ruby TESTS 49 62 7168000 1800
35840341 ______h______ B March 2, 2018, 2:15 p.m. OK Ruby TESTS 49 62 7168000 1800
35840311 ______k______ B March 2, 2018, 2:15 p.m. OK Ruby TESTS 49 62 7168000 1800
35840015 ______i______ B March 2, 2018, 2:09 p.m. OK Ruby TESTS 49 62 7168000 1800
35837294 ______M______ B March 2, 2018, 1:10 p.m. OK Ruby TESTS 49 62 7168000 1800

remove filters

Back to search problems