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 |
---|---|---|---|---|---|---|
93 | Codeforces Beta Round 76 (Div. 1 Only) | FINISHED | False | 7200 | 422377199 | June 30, 2011, 3 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 352 ) | D | Flags | PROGRAMMING | dp math matrices | 2400 |
B'When Igor K. was a freshman, his professor strictly urged him, as well as all other freshmen, to solve programming Olympiads. One day a problem called "Flags" from a website called Timmy 's Online Judge caught his attention. In the problem one had to find the number of three-colored flags that would satisfy the condition... actually, it doesn 't matter. Igor K. quickly found the formula and got the so passionately desired Accepted. However, the professor wasn 't very much impressed. He decided that the problem represented on Timmy 's Online Judge was very dull and simple: it only had three possible colors of flag stripes and only two limitations. He suggested a complicated task to Igor K. and the fellow failed to solve it. Of course, we won 't tell anybody that the professor couldn 't solve it as well. And how about you? Can you solve the problem? The flags consist of one or several parallel stripes of similar width. The stripes can be one of the following colors: white, black, red or yellow. You should find the number of different flags with the number of stripes from L to R, if: The only line contains two integers L and R (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89L xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89R xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109). They are the lower and upper borders of the number of stripes on the flag. Print a single number -- the number of different flags that would satisfy the condition of the problem and would have from L to R stripes, modulo 1000000007. In the first test the following flags exist (they are listed in the lexicographical order, the letters B, R, W, Y stand for Black, Red, White and Yellow correspondingly): 3 stripes: BWB, BYB, BYR, RWR, RYR, WBW, WBY, WRW, WRY, YBY, YRY (overall 11 flags). 4 stripes: BWBW, BWBY, BYBW, BYBY, BYRW, BYRY, RWRW, RWRY, RYBW, RYBY, RYRW, RYRY (12 flags). That 's why the answer to test 1 is equal to 11 xe2 x80 x89+ xe2 x80 x8912 xe2 x80 x89= xe2 x80 x8923.'... |
Codeforces Beta Round 76 - задача Е div 1 глазами ее автора. |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
525946 | dalex | D | July 2, 2011, 11:57 a.m. | OK | Delphi | TESTS | 90 | 270 | 1331200 | 2400 | |
1071092 | Sereja | D | Jan. 17, 2012, 7:21 a.m. | OK | Delphi | TESTS | 90 | 690 | 1024000 | 2400 | |
525779 | NGNCMH | D | July 2, 2011, 8:16 a.m. | OK | FPC | TESTS | 90 | 30 | 1024000 | 2400 | |
2603468 | luogan | D | Nov. 20, 2012, 6:43 a.m. | OK | FPC | TESTS | 90 | 31 | 0 | 2400 | |
2603294 | superpear | D | Nov. 20, 2012, 6:05 a.m. | OK | FPC | TESTS | 90 | 31 | 0 | 2400 | |
1157586 | zanoes | D | Feb. 8, 2012, 12:31 p.m. | OK | FPC | TESTS | 90 | 60 | 1024000 | 2400 | |
523296 | Sereja | D | June 30, 2011, 8:02 p.m. | OK | FPC | TESTS | 90 | 1950 | 1228800 | 2400 | |
4922102 | yangff | D | Oct. 28, 2013, 4:27 p.m. | OK | GNU C++ | TESTS | 90 | 15 | 0 | 2400 | |
4167139 | vjtest | D | July 26, 2013, 4:02 a.m. | OK | GNU C++ | TESTS | 90 | 15 | 0 | 2400 | |
4167136 | CaliburianC.C. | D | July 26, 2013, 4:01 a.m. | OK | GNU C++ | TESTS | 90 | 15 | 0 | 2400 | |
4162879 | metafluor | D | July 25, 2013, 10:01 a.m. | OK | GNU C++ | TESTS | 90 | 15 | 0 | 2400 | |
4162874 | vjudge5 | D | July 25, 2013, 9:59 a.m. | OK | GNU C++ | TESTS | 90 | 15 | 0 | 2400 | |
4162794 | bjtuacm | D | July 25, 2013, 9:46 a.m. | OK | GNU C++ | TESTS | 90 | 15 | 0 | 2400 | |
4160702 | vjtest | D | July 25, 2013, 3:36 a.m. | OK | GNU C++ | TESTS | 90 | 15 | 0 | 2400 | |
4160694 | Dlintao | D | July 25, 2013, 3:34 a.m. | OK | GNU C++ | TESTS | 90 | 15 | 0 | 2400 | |
4144744 | vjtest | D | July 24, 2013, 6:01 a.m. | OK | GNU C++ | TESTS | 90 | 15 | 0 | 2400 | |
4144435 | vjtest | D | July 24, 2013, 4:01 a.m. | OK | GNU C++ | TESTS | 90 | 15 | 0 | 2400 | |
2856336 | dc. | D | Dec. 30, 2012, 9:35 a.m. | OK | GNU C++0x | TESTS | 90 | 15 | 0 | 2400 | |
2790965 | bakabakashyoshyo | D | Dec. 18, 2012, 1:47 p.m. | OK | GNU C++0x | TESTS | 90 | 15 | 0 | 2400 | |
2756753 | apia | D | Dec. 13, 2012, 6:43 a.m. | OK | GNU C++0x | TESTS | 90 | 31 | 0 | 2400 | |
2683088 | llj_bash | D | Dec. 1, 2012, 8:48 a.m. | OK | GNU C++0x | TESTS | 90 | 31 | 0 | 2400 | |
2753311 | dhh1995 | D | Dec. 12, 2012, 5:28 a.m. | OK | GNU C++0x | TESTS | 90 | 46 | 0 | 2400 | |
7654467 | delta_4d | D | Aug. 31, 2014, 1:23 p.m. | OK | GNU C++0x | TESTS | 90 | 62 | 0 | 2400 | |
9227205 | sdya | D | Dec. 22, 2014, 7:01 p.m. | OK | GNU C++0x | TESTS | 90 | 62 | 204800 | 2400 | |
1186403 | Archon.JK | D | Feb. 17, 2012, 6:53 a.m. | OK | GNU C++0x | TESTS | 90 | 80 | 1433600 | 2400 | |
20833086 | hnuRoshan | D | Sept. 23, 2016, 8:38 a.m. | OK | GNU C++11 | TESTS | 90 | 30 | 0 | 2400 | |
33646957 | FlappyFish | D | Dec. 26, 2017, 12:45 p.m. | OK | GNU C++11 | TESTS | 90 | 30 | 2048000 | 2400 | |
33281060 | hawkomg | D | Dec. 16, 2017, 5:22 a.m. | OK | GNU C++11 | TESTS | 90 | 30 | 2048000 | 2400 | |
17888339 | eddy1021 | D | May 13, 2016, noon | OK | GNU C++11 | TESTS | 90 | 30 | 2252800 | 2400 | |
25452488 | YaShem | D | March 13, 2017, 11:33 a.m. | OK | GNU C++11 | TESTS | 90 | 30 | 2457600 | 2400 | |
18878780 | Y_UME | D | July 4, 2016, 7:57 a.m. | OK | GNU C++11 | TESTS | 90 | 60 | 0 | 2400 | |
66781459 | iamqzh | D | Dec. 13, 2019, 12:10 p.m. | OK | GNU C++11 | TESTS | 90 | 62 | 0 | 2400 | |
57904865 | lopare | D | July 28, 2019, 5:12 p.m. | OK | GNU C++11 | TESTS | 90 | 62 | 0 | 2400 | |
53895914 | luogu_bot1 | D | May 9, 2019, 5:54 a.m. | OK | GNU C++11 | TESTS | 90 | 62 | 0 | 2400 | |
49982099 | wangju | D | Feb. 16, 2019, 8:44 a.m. | OK | GNU C++11 | TESTS | 90 | 62 | 0 | 2400 | |
31969844 | Flash-boy | D | Nov. 2, 2017, 6:40 a.m. | OK | GNU C++14 | TESTS | 90 | 30 | 0 | 2400 | |
27442487 | Eson | D | May 30, 2017, 7:47 a.m. | OK | GNU C++14 | TESTS | 90 | 30 | 0 | 2400 | |
23671606 | Ali.Pi | D | Jan. 9, 2017, 9:58 p.m. | OK | GNU C++14 | TESTS | 90 | 30 | 1843200 | 2400 | |
34567425 | vjudge1 | D | Jan. 26, 2018, 6:57 a.m. | OK | GNU C++14 | TESTS | 90 | 30 | 1945600 | 2400 | |
34276021 | Cyanic | D | Jan. 18, 2018, 12:51 p.m. | OK | GNU C++14 | TESTS | 90 | 30 | 1945600 | 2400 | |
28110621 | Sealionheart | D | June 28, 2017, 7:51 a.m. | OK | GNU C++14 | TESTS | 90 | 30 | 1945600 | 2400 | |
49981864 | wangju | D | Feb. 16, 2019, 8:38 a.m. | OK | GNU C++14 | TESTS | 90 | 62 | 0 | 2400 | |
47119219 | ASSWECAN | D | Dec. 16, 2018, 3:06 p.m. | OK | GNU C++14 | TESTS | 90 | 62 | 0 | 2400 | |
46062502 | BelowLuminous | D | Nov. 22, 2018, 2:05 p.m. | OK | GNU C++14 | TESTS | 90 | 62 | 0 | 2400 | |
45247921 | tuwuna | D | Nov. 3, 2018, 2:53 p.m. | OK | GNU C++14 | TESTS | 90 | 62 | 0 | 2400 | |
38313530 | Heaven | D | May 16, 2018, 8:07 a.m. | OK | GNU C++17 | TESTS | 90 | 60 | 3584000 | 2400 | |
64165645 | Mai-sanBestWaifu | D | Nov. 3, 2019, 4:10 p.m. | OK | GNU C++17 | TESTS | 90 | 62 | 0 | 2400 | |
47170558 | l_Love_Thuy_Linh | D | Dec. 17, 2018, 2:44 p.m. | OK | GNU C++17 | TESTS | 90 | 62 | 0 | 2400 | |
45109674 | 185217 | D | Oct. 30, 2018, 5:50 p.m. | OK | GNU C++17 | TESTS | 90 | 62 | 0 | 2400 | |
40054835 | ruo | D | July 7, 2018, 8:03 a.m. | OK | GNU C++17 | TESTS | 90 | 62 | 0 | 2400 | |
50617601 | karasek | D | Feb. 28, 2019, 8:49 p.m. | OK | GNU C++17 | TESTS | 90 | 62 | 204800 | 2400 | |
45247912 | tuwuna | D | Nov. 3, 2018, 2:53 p.m. | OK | GNU C++17 | TESTS | 90 | 62 | 204800 | 2400 | |
45232006 | tuwuna | D | Nov. 3, 2018, 7:31 a.m. | OK | GNU C++17 | TESTS | 90 | 62 | 204800 | 2400 | |
45230814 | tuwuna | D | Nov. 3, 2018, 6:55 a.m. | OK | GNU C++17 | TESTS | 90 | 62 | 204800 | 2400 | |
45231627 | tuwuna | D | Nov. 3, 2018, 7:20 a.m. | OK | GNU C++17 | TESTS | 90 | 62 | 307200 | 2400 | |
527783 | partizan22 | D | July 4, 2011, 11:20 a.m. | OK | Haskell | TESTS | 90 | 30 | 2048000 | 2400 | |
2583778 | xlk | D | Nov. 18, 2012, 7:21 a.m. | OK | Haskell | TESTS | 90 | 31 | 0 | 2400 | |
4165478 | Phicar | D | July 25, 2013, 6:41 p.m. | OK | Java 6 | TESTS | 90 | 78 | 0 | 2400 | |
543006 | charleschen | D | July 12, 2011, 9:36 a.m. | OK | Java 6 | TESTS | 90 | 90 | 34918400 | 2400 | |
521237 | Egor | D | June 30, 2011, 4:44 p.m. | OK | Java 6 | TESTS | 90 | 90 | 43008000 | 2400 | |
4144280 | Phicar | D | July 24, 2013, 3:25 a.m. | OK | Java 6 | TESTS | 90 | 93 | 0 | 2400 | |
525726 | S.Yesipenko | D | July 2, 2011, 7:04 a.m. | OK | Java 6 | TESTS | 90 | 110 | 43008000 | 2400 | |
525716 | S.Yesipenko | D | July 2, 2011, 6:54 a.m. | OK | Java 6 | TESTS | 90 | 110 | 43008000 | 2400 | |
522202 | yaro | D | June 30, 2011, 5:30 p.m. | OK | Java 6 | TESTS | 90 | 110 | 43008000 | 2400 | |
562769 | uwi | D | July 23, 2011, 2:20 p.m. | OK | Java 6 | TESTS | 90 | 130 | 43110400 | 2400 | |
542634 | ostrovski.alex | D | July 11, 2011, 10:07 p.m. | OK | Java 6 | TESTS | 90 | 140 | 43110400 | 2400 | |
522943 | uwi | D | June 30, 2011, 6:14 p.m. | OK | Java 6 | TESTS | 90 | 160 | 43008000 | 2400 | |
15234924 | AndreiNet | D | Jan. 8, 2016, 9:46 a.m. | OK | Java 8 | TESTS | 90 | 310 | 0 | 2400 | |
12896871 | hama-du | D | Sept. 8, 2015, 12:07 p.m. | OK | Java 8 | TESTS | 90 | 966 | 0 | 2400 | |
12896813 | hama-du | D | Sept. 8, 2015, 12:03 p.m. | OK | Java 8 | TESTS | 90 | 966 | 0 | 2400 | |
538475 | zglnsyzzc | D | July 9, 2011, 1:58 a.m. | OK | MS C++ | TESTS | 90 | 30 | 1331200 | 2400 | |
526192 | Slevin | D | July 2, 2011, 3:50 p.m. | OK | MS C++ | TESTS | 90 | 30 | 1433600 | 2400 | |
524191 | Myungwoo | D | July 1, 2011, 8:01 a.m. | OK | MS C++ | TESTS | 90 | 30 | 1433600 | 2400 | |
523895 | odorf | D | July 1, 2011, 6:04 a.m. | OK | MS C++ | TESTS | 90 | 30 | 1433600 | 2400 | |
529312 | Medium | D | July 5, 2011, 9:59 p.m. | OK | MS C++ | TESTS | 90 | 50 | 1433600 | 2400 | |
522502 | DPR-pavlin | D | June 30, 2011, 5:40 p.m. | OK | MS C++ | TESTS | 90 | 50 | 1433600 | 2400 | |
522253 | Kurpilyansky | D | June 30, 2011, 5:31 p.m. | OK | MS C++ | TESTS | 90 | 50 | 1433600 | 2400 | |
523118 | KADR | D | June 30, 2011, 6:56 p.m. | OK | MS C++ | TESTS | 90 | 60 | 1433600 | 2400 | |
531327 | sjtu_pigoneand | D | July 8, 2011, 7:24 a.m. | OK | MS C++ | TESTS | 90 | 80 | 1433600 | 2400 | |
523114 | KADR | D | June 30, 2011, 6:55 p.m. | OK | MS C++ | TESTS | 90 | 80 | 2150400 | 2400 | |
2497584 | dc. | D | Nov. 4, 2012, 12:26 p.m. | OK | Python 2 | TESTS | 90 | 78 | 0 | 2400 | |
2424375 | xlk | D | Oct. 25, 2012, 7:37 a.m. | OK | Python 2 | TESTS | 90 | 78 | 0 | 2400 | |
35898857 | ______u______ | D | March 3, 2018, 6:27 p.m. | OK | Python 2 | TESTS | 90 | 124 | 4608000 | 2400 | |
35898792 | _____k_____ | D | March 3, 2018, 6:25 p.m. | OK | Python 2 | TESTS | 90 | 124 | 4608000 | 2400 | |
35898464 | ______n______ | D | March 3, 2018, 6:16 p.m. | OK | Python 2 | TESTS | 90 | 124 | 4608000 | 2400 | |
35897999 | _____i_____ | D | March 3, 2018, 6:11 p.m. | OK | Python 2 | TESTS | 90 | 124 | 4608000 | 2400 | |
35892743 | ______h______ | D | March 3, 2018, 3:33 p.m. | OK | Python 2 | TESTS | 90 | 124 | 4608000 | 2400 | |
56017247 | sorry_im_smurfing | D | June 24, 2019, 10:28 p.m. | OK | Python 2 | TESTS | 90 | 342 | 0 | 2400 | |
49463232 | namratha_253 | D | Feb. 4, 2019, 2 p.m. | OK | Python 2 | TESTS | 90 | 342 | 0 | 2400 |
Back to search problems