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 |
|---|---|---|---|---|---|---|
| 832 | Codeforces Round 425 (Div. 2) | FINISHED | False | 7200 | 275585085 | July 24, 2017, 2:35 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 374 ) | E | Vasya and Shifts | PROGRAMMING | matrices | 2700 |
Vasya has a set of 4 n strings of equal length, consisting of lowercase English letters " a ", " b ", " c ", " d " and " e ". Moreover, the set is split into n groups of 4 equal strings each. Vasya also has one special string a of the same length, consisting of letters " a " only. Vasya wants to obtain from string a some fixed string b , in order to do this, he can use the strings from his set in any order. When he uses some string x , each of the letters in string a replaces with the next letter in alphabet as many times as the alphabet position, counting from zero, of the corresponding letter in string x . Within this process the next letter in alphabet after " e " is " a ". For example, if some letter in a equals " b ", and the letter on the same position in x equals " c ", then the letter in a becomes equal " d ", because " c " is the second alphabet letter, counting from zero. If some letter in a equals " e ", and on the same position in x is " d ", then the letter in a becomes " c ". For example, if the string a equals " abcde ", and string x equals " baddc ", then a becomes " bbabb ". A used string disappears, but Vasya can use equal strings several times. Vasya wants to know for q given strings b , how many ways there are to obtain from the string a string b using the given set of 4 n strings? Two ways are different if the number of strings used from some group of 4 strings is different. Help Vasya compute the answers for these questions modulo 10 9 + 7 . The first line contains two integers n and m ( 1 ≤ n , m ≤ 500 ) — the number of groups of four strings in the set, and the length of all strings. Each of the next n lines contains a string s of length m , consisting of lowercase English letters " a ", " b ", " c ", " d " and " e ". This means that there is a group of four strings equal to s . The next line contains single integer q ( 1 ≤ q ≤ 300 ) — the number of strings b Vasya is interested in. Each of the next q strings contains a string b of |
| Codeforces Round #425 (Div.2) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 28871435 | I_Love_U_Sohan | E | July 25, 2017, 9:23 a.m. | OK | GNU C++ | TESTS | 83 | 171 | 3072000 | 2700 | |
| 28848843 | _rqy | E | July 24, 2017, 4:19 p.m. | OK | GNU C++ | TESTS | 83 | 171 | 3072000 | 2700 | |
| 29041247 | vjudge4 | E | July 31, 2017, 7:58 a.m. | OK | GNU C++ | TESTS | 83 | 171 | 3174400 | 2700 | |
| 28876861 | vjudge1 | E | July 25, 2017, 1:16 p.m. | OK | GNU C++ | TESTS | 83 | 171 | 3174400 | 2700 | |
| 28987547 | gamenewer | E | July 30, 2017, 9:49 a.m. | OK | GNU C++ | TESTS | 83 | 217 | 3174400 | 2700 | |
| 28858158 | guille | E | July 24, 2017, 9:03 p.m. | OK | GNU C++ | TESTS | 83 | 218 | 7065600 | 2700 | |
| 28874882 | prakash14 | E | July 25, 2017, 11:54 a.m. | OK | GNU C++ | TESTS | 83 | 234 | 3072000 | 2700 | |
| 28851079 | Parachutes | E | July 24, 2017, 4:32 p.m. | OK | GNU C++ | TESTS | 83 | 234 | 3174400 | 2700 | |
| 29722270 | ReFraction | E | Aug. 24, 2017, 4:59 a.m. | OK | GNU C++ | TESTS | 83 | 249 | 3072000 | 2700 | |
| 28900137 | Allunlimited | E | July 26, 2017, 9:32 a.m. | OK | GNU C++ | TESTS | 83 | 249 | 6144000 | 2700 | |
| 57088375 | Big_black_jujube | E | July 15, 2019, 9:45 a.m. | OK | GNU C++11 | TESTS | 83 | 140 | 2048000 | 2700 | |
| 28862617 | zhangzy | E | July 25, 2017, 2:19 a.m. | OK | GNU C++11 | TESTS | 83 | 140 | 3686400 | 2700 | |
| 57873904 | lopare | E | July 28, 2019, 3:55 a.m. | OK | GNU C++11 | TESTS | 83 | 155 | 2867200 | 2700 | |
| 57769451 | py_ultron | E | July 25, 2019, 11:11 p.m. | OK | GNU C++11 | TESTS | 83 | 156 | 2867200 | 2700 | |
| 31527287 | just_soso | E | Oct. 20, 2017, 8:41 a.m. | OK | GNU C++11 | TESTS | 83 | 171 | 3174400 | 2700 | |
| 28974393 | fshp971 | E | July 29, 2017, 4:31 p.m. | OK | GNU C++11 | TESTS | 83 | 171 | 11161600 | 2700 | |
| 28881185 | farfood | E | July 25, 2017, 3:44 p.m. | OK | GNU C++11 | TESTS | 83 | 187 | 3686400 | 2700 | |
| 28974427 | fshp971 | E | July 29, 2017, 4:33 p.m. | OK | GNU C++11 | TESTS | 83 | 187 | 7168000 | 2700 | |
| 28852130 | RNS_KSB | E | July 24, 2017, 5:04 p.m. | OK | GNU C++11 | TESTS | 83 | 217 | 6144000 | 2700 | |
| 43229997 | luogu_bot4 | E | Sept. 22, 2018, 1:25 a.m. | OK | GNU C++11 | TESTS | 83 | 234 | 3993600 | 2700 | |
| 40980429 | ReaLNero1 | E | July 30, 2018, 5:31 p.m. | OK | GNU C++14 | TESTS | 83 | 93 | 1024000 | 2700 | |
| 28875622 | Twishkle.Aevdark | E | July 25, 2017, 12:27 p.m. | OK | GNU C++14 | TESTS | 83 | 93 | 2969600 | 2700 | |
| 46891244 | zhou888 | E | Dec. 11, 2018, 6:14 a.m. | OK | GNU C++14 | TESTS | 83 | 124 | 1024000 | 2700 | |
| 29347515 | pps789 | E | Aug. 11, 2017, 8:17 a.m. | OK | GNU C++14 | TESTS | 83 | 140 | 5222400 | 2700 | |
| 29040655 | sai | E | July 31, 2017, 7:40 a.m. | OK | GNU C++14 | TESTS | 83 | 171 | 2969600 | 2700 | |
| 29201196 | Splashing | E | Aug. 4, 2017, 6:05 p.m. | OK | GNU C++14 | TESTS | 83 | 171 | 3584000 | 2700 | |
| 28865179 | fengsuiyan | E | July 25, 2017, 4:26 a.m. | OK | GNU C++14 | TESTS | 83 | 171 | 3993600 | 2700 | |
| 28866393 | fengsuiyan | E | July 25, 2017, 5:38 a.m. | OK | GNU C++14 | TESTS | 83 | 171 | 4300800 | 2700 | |
| 28865798 | fengsuiyan | E | July 25, 2017, 5:01 a.m. | OK | GNU C++14 | TESTS | 83 | 171 | 4300800 | 2700 | |
| 29323345 | mengrao | E | Aug. 10, 2017, 10:08 a.m. | OK | GNU C++14 | TESTS | 83 | 171 | 5939200 | 2700 | |
| 61753456 | vjudge5 | E | Oct. 3, 2019, 4:30 a.m. | OK | GNU C++17 | TESTS | 83 | 202 | 2048000 | 2700 | |
| 61753067 | vjudge3 | E | Oct. 3, 2019, 4:21 a.m. | OK | GNU C++17 | TESTS | 83 | 202 | 2048000 | 2700 | |
| 61753303 | vjudge4 | E | Oct. 3, 2019, 4:27 a.m. | OK | GNU C++17 | TESTS | 83 | 217 | 2048000 | 2700 | |
| 46817964 | ShichengXiao | E | Dec. 9, 2018, 1:14 p.m. | OK | GNU C++17 | TESTS | 83 | 218 | 1024000 | 2700 | |
| 61763466 | vjudge5 | E | Oct. 3, 2019, 7:51 a.m. | OK | GNU C++17 | TESTS | 83 | 218 | 2048000 | 2700 | |
| 61763386 | vjudge2 | E | Oct. 3, 2019, 7:50 a.m. | OK | GNU C++17 | TESTS | 83 | 295 | 2150400 | 2700 | |
| 62082259 | ivan100sic | E | Oct. 7, 2019, 9:37 p.m. | OK | GNU C++17 | TESTS | 83 | 498 | 1228800 | 2700 | |
| 55627926 | MetB | E | June 16, 2019, 10:07 a.m. | OK | GNU C++17 | TESTS | 83 | 1481 | 16281600 | 2700 | |
| 55572927 | MetB | E | June 14, 2019, 8:13 p.m. | OK | GNU C++17 | TESTS | 83 | 1528 | 16281600 | 2700 | |
| 29627529 | Darth_Jar_Jar_Binks | E | Aug. 20, 2017, 6:04 p.m. | OK | Java 8 | TESTS | 83 | 561 | 0 | 2700 | |
| 28853516 | uwi | E | July 24, 2017, 5:27 p.m. | OK | Java 8 | TESTS | 83 | 670 | 20582400 | 2700 | |
| 28853943 | megh422 | E | July 24, 2017, 5:37 p.m. | OK | Java 8 | TESTS | 83 | 1902 | 20582400 | 2700 | |
| 28853717 | uwi | E | July 24, 2017, 5:32 p.m. | OK | Java 8 | TESTS | 83 | 1980 | 20582400 | 2700 | |
| 54551845 | vjudge2 | E | May 24, 2019, 9:31 a.m. | OK | MS C++ | TESTS | 83 | 1248 | 1638400 | 2700 |
Back to search problems