Codeforces Beta Round 91 (Div. 1 Only)

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
121 Codeforces Beta Round 91 (Div. 1 Only) FINISHED False 7200 412095599 Oct. 27, 2011, 3 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1731 ) E Lucky Array PROGRAMMING data structures 2300

B"Petya loves lucky numbers. Everybody knows that lucky numbers are positive integers whose decimal representation contains only the lucky digits 4 and 7. For example, numbers 47, 744, 4 are lucky and 5, 17, 467 are not. Petya has an array consisting of n numbers. He wants to perform m operations of two types: Petya has a list of all operations. The operations are such that after all additions the array won't have numbers that would exceed 104. Help Petya write a program that would perform these operations. 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 x89105) -- the number of numbers in the array and the number of operations correspondingly. The second line contains n positive integers, none of which exceeds 104 -- those are the array numbers. Next m lines contain operations, one per line. They correspond to the description given in the statement. It is guaranteed that after all operations are fulfilled each number in the array will not exceed 104. For each operation of the second type print the single number on the single line -- the number of lucky numbers in the corresponding interval. In the first sample after the first addition the array will look in the following manner: 4 5 6 After the second addition: 4 8 9 The second sample after the first addition: 7 7 7 7 After the second addition: 7 47 47 7"...

Tutorials

Разбор задач

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
804829 tourist E Oct. 27, 2011, 4:11 p.m. OK Delphi TESTS 71 1190 11980800 2300
813342 -XraY- E Oct. 28, 2011, 9:13 p.m. OK Delphi TESTS 72 1310 11980800 2300
806940 CherryTree E Oct. 27, 2011, 4:46 p.m. OK Delphi TESTS 71 2450 24473600 2300
906100 zanoes E Nov. 26, 2011, 1:11 p.m. OK Delphi TESTS 72 2920 2457600 2300
821981 Rubanenko E Oct. 31, 2011, 1:25 p.m. OK Delphi TESTS 72 3480 37376000 2300
934062 Furko E Dec. 7, 2011, 8:55 a.m. OK Delphi TESTS 72 3520 18636800 2300
808851 Sereja E Oct. 27, 2011, 6:26 p.m. OK Delphi TESTS 71 3580 37376000 2300
808105 Sereja E Oct. 27, 2011, 5:53 p.m. OK Delphi TESTS 71 3580 37376000 2300
811319 Nikolai E Oct. 28, 2011, 8:31 a.m. OK Delphi TESTS 72 3670 2560000 2300
811312 name_lol E Oct. 28, 2011, 8:30 a.m. OK Delphi TESTS 72 3670 2560000 2300
1998624 hung06061995 E Aug. 11, 2012, 1:14 a.m. OK FPC TESTS 72 420 5939200 2300
820897 coolinging E Oct. 31, 2011, 4:14 a.m. OK FPC TESTS 72 500 6246400 2300
825551 giongto35 E Nov. 3, 2011, 3:03 a.m. OK FPC TESTS 72 2080 7782400 2300
68002055 dblark E Dec. 31, 2019, 11:23 a.m. OK FPC TESTS 72 2744 41164800 2300
1171655 vlad107 E Feb. 11, 2012, 9:50 a.m. OK FPC TESTS 72 3270 1843200 2300
48031564 vjudge5 E Jan. 6, 2019, 12:44 p.m. OK FPC TESTS 72 3554 137318400 2300
46890815 luogu_bot5 E Dec. 11, 2018, 5:54 a.m. OK FPC TESTS 72 3556 137011200 2300
46890773 luogu_bot3 E Dec. 11, 2018, 5:51 a.m. OK FPC TESTS 72 3556 137011200 2300
15921062 vjudge5 E Feb. 9, 2016, 8:14 p.m. OK GNU C TESTS 72 936 2969600 2300
15921030 sgtlaugh E Feb. 9, 2016, 8:12 p.m. OK GNU C TESTS 72 936 13926400 2300
15921033 sgtlaugh E Feb. 9, 2016, 8:12 p.m. OK GNU C TESTS 72 966 13926400 2300
17693272 vjudge4 E May 2, 2016, 6:15 p.m. OK GNU C TESTS 72 1122 16486400 2300
15921048 sgtlaugh E Feb. 9, 2016, 8:13 p.m. OK GNU C TESTS 72 1154 13926400 2300
15921019 sgtlaugh E Feb. 9, 2016, 8:11 p.m. OK GNU C TESTS 72 1246 13926400 2300
15921041 sgtlaugh E Feb. 9, 2016, 8:13 p.m. OK GNU C TESTS 72 1434 13926400 2300
4165824 Practice_Scott E July 25, 2013, 9:31 p.m. OK GNU C TESTS 72 1828 819200 2300
3498404 chaoking E April 10, 2013, 4:59 a.m. OK GNU C TESTS 72 2546 11980800 2300
4099913 vjudge1 E July 18, 2013, 2:52 p.m. OK GNU C TESTS 72 2906 819200 2300
33238878 Icyfox E Dec. 14, 2017, 12:05 p.m. OK GNU C++ TESTS 72 312 7270400 2300
33234700 leoly E Dec. 14, 2017, 9:11 a.m. OK GNU C++ TESTS 72 312 7475200 2300
33234374 Icyfox E Dec. 14, 2017, 8:52 a.m. OK GNU C++ TESTS 72 312 8908800 2300
807180 vepifanov E Oct. 27, 2011, 4:50 p.m. OK GNU C++ TESTS 71 330 9830400 2300
32342565 deathter E Nov. 15, 2017, 9:56 p.m. OK GNU C++ TESTS 72 342 6041600 2300
839421 zurg E Nov. 7, 2011, noon OK GNU C++ TESTS 72 360 2662400 2300
839492 lijunle E Nov. 7, 2011, 12:39 p.m. OK GNU C++ TESTS 72 360 9830400 2300
823792 mukel E Nov. 1, 2011, 8:24 p.m. OK GNU C++ TESTS 72 360 42598400 2300
16452143 Bera E March 1, 2016, 6:33 p.m. OK GNU C++ TESTS 72 372 6041600 2300
33234657 leoly E Dec. 14, 2017, 9:09 a.m. OK GNU C++ TESTS 72 374 7475200 2300
5653936 BryantMark E Jan. 10, 2014, 1:30 p.m. OK GNU C++0x TESTS 72 342 23756800 2300
1159691 watashi E Feb. 9, 2012, 1:28 p.m. OK GNU C++0x TESTS 72 390 5120000 2300
803481 2222 E Oct. 27, 2011, 3:50 p.m. OK GNU C++0x TESTS 71 420 2662400 2300
9074300 jangwinner E Dec. 10, 2014, 4:53 p.m. OK GNU C++0x TESTS 72 436 9830400 2300
5653907 BryantMark E Jan. 10, 2014, 1:22 p.m. OK GNU C++0x TESTS 72 436 23756800 2300
6641714 FancyCoder E May 17, 2014, 10:17 a.m. OK GNU C++0x TESTS 72 872 4608000 2300
9190974 M.Mahdi E Dec. 18, 2014, 7:17 p.m. OK GNU C++0x TESTS 72 996 22118400 2300
9591465 Velter E Jan. 27, 2015, 6:48 p.m. OK GNU C++0x TESTS 72 1152 13619200 2300
10239042 Amirkasra E March 11, 2015, 3:55 p.m. OK GNU C++0x TESTS 72 1184 5222400 2300
817430 gevak E Oct. 29, 2011, 4:18 p.m. OK GNU C++0x TESTS 72 1200 2764800 2300
60700843 rainboy E Sept. 17, 2019, 12:09 a.m. OK GNU C11 TESTS 72 2496 4608000 2300
64795743 mat_lp E Nov. 13, 2019, 12:50 p.m. OK GNU C11 TESTS 72 2870 409600 2300
60699089 rainboy E Sept. 16, 2019, 9:53 p.m. OK GNU C11 TESTS 72 3960 5836800 2300
64670199 QuisVenator E Nov. 11, 2019, 5:25 a.m. OK GNU C11 TESTS 72 3962 5632000 2300
64895792 javs98 E Nov. 14, 2019, 4:32 p.m. OK GNU C11 TESTS 72 3992 5632000 2300
40992211 ReaLNero1 E July 31, 2018, 1:10 a.m. OK GNU C++11 TESTS 72 248 5632000 2300
11835048 iSlava E June 29, 2015, 10:40 a.m. OK GNU C++11 TESTS 72 248 5632000 2300
11835011 iSlava E June 29, 2015, 10:38 a.m. OK GNU C++11 TESTS 72 278 5632000 2300
58051280 luogu_bot5 E July 31, 2019, 2:45 a.m. OK GNU C++11 TESTS 72 280 5222400 2300
11834947 iSlava E June 29, 2015, 10:33 a.m. OK GNU C++11 TESTS 72 280 5632000 2300
33234754 leoly E Dec. 14, 2017, 9:13 a.m. OK GNU C++11 TESTS 72 280 7475200 2300
58051412 Ganshuaige E July 31, 2019, 2:47 a.m. OK GNU C++11 TESTS 72 312 5222400 2300
58052841 luogu_bot2 E July 31, 2019, 3:24 a.m. OK GNU C++11 TESTS 72 312 5632000 2300
58051391 luogu_bot4 E July 31, 2019, 2:47 a.m. OK GNU C++11 TESTS 72 312 5632000 2300
33239043 Icyfox E Dec. 14, 2017, 12:13 p.m. OK GNU C++11 TESTS 72 312 7270400 2300
67145433 ElangBondol E Dec. 18, 2019, 8:38 a.m. OK GNU C++14 TESTS 72 404 5120000 2300
65022664 AngrySeal E Nov. 15, 2019, 6:05 a.m. OK GNU C++14 TESTS 72 404 5632000 2300
33232970 leoly E Dec. 14, 2017, 7:46 a.m. OK GNU C++14 TESTS 72 404 6758400 2300
33234036 leoly E Dec. 14, 2017, 8:38 a.m. OK GNU C++14 TESTS 72 404 7475200 2300
33233900 leoly E Dec. 14, 2017, 8:32 a.m. OK GNU C++14 TESTS 72 404 7577600 2300
46287422 I-Love-Islam E Nov. 27, 2018, 5:10 p.m. OK GNU C++14 TESTS 72 404 11673600 2300
33233379 leoly E Dec. 14, 2017, 8:09 a.m. OK GNU C++14 TESTS 72 434 6758400 2300
33216955 leoly E Dec. 13, 2017, 2:54 p.m. OK GNU C++14 TESTS 72 436 6758400 2300
33233698 leoly E Dec. 14, 2017, 8:24 a.m. OK GNU C++14 TESTS 72 436 7475200 2300
33234598 leoly E Dec. 14, 2017, 9:06 a.m. OK GNU C++14 TESTS 72 436 7475200 2300
58061327 Ayanokoji E July 31, 2019, 7:31 a.m. OK GNU C++17 TESTS 72 404 5222400 2300
49327493 vjudge2 E Feb. 1, 2019, 2:42 p.m. OK GNU C++17 TESTS 72 404 5427200 2300
58468162 vjudge4 E Aug. 8, 2019, 9 p.m. OK GNU C++17 TESTS 72 404 6860800 2300
49326170 vjudge4 E Feb. 1, 2019, 2:09 p.m. OK GNU C++17 TESTS 72 404 7065600 2300
61838897 1004176113 E Oct. 4, 2019, 8:57 a.m. OK GNU C++17 TESTS 72 404 8806400 2300
61837716 1004176113 E Oct. 4, 2019, 8:34 a.m. OK GNU C++17 TESTS 72 434 8806400 2300
61838840 1004176113 E Oct. 4, 2019, 8:56 a.m. OK GNU C++17 TESTS 72 434 8806400 2300
52903589 badcw E April 17, 2019, 11:56 a.m. OK GNU C++17 TESTS 72 436 5222400 2300
41680007 vjudge2 E Aug. 17, 2018, 10:19 a.m. OK GNU C++17 TESTS 72 436 6041600 2300
49325993 vjudge4 E Feb. 1, 2019, 2:05 p.m. OK GNU C++17 TESTS 72 436 7065600 2300
807217 Petr E Oct. 27, 2011, 4:51 p.m. OK Java 6 TESTS 71 580 43417600 2300
954749 FattyPenguin E Dec. 14, 2011, 5:32 a.m. OK Java 6 TESTS 72 660 43417600 2300
819356 uwi E Oct. 30, 2011, 11:51 a.m. OK Java 6 TESTS 72 920 35430400 2300
819376 uwi E Oct. 30, 2011, 11:58 a.m. OK Java 6 TESTS 72 970 35430400 2300
819363 uwi E Oct. 30, 2011, 11:55 a.m. OK Java 6 TESTS 72 980 35430400 2300
807701 mastersobg E Oct. 27, 2011, 4:58 p.m. OK Java 6 TESTS 71 980 43417600 2300
3612588 santjuan E April 23, 2013, 4:56 p.m. OK Java 6 TESTS 72 984 409600 2300
819350 uwi E Oct. 30, 2011, 11:50 a.m. OK Java 6 TESTS 72 1010 35430400 2300
810286 uwi E Oct. 28, 2011, 2:41 a.m. OK Java 6 TESTS 72 1280 58265600 2300
819294 uwi E Oct. 30, 2011, 11:19 a.m. OK Java 6 TESTS 72 2160 35430400 2300
10531430 A.Elahi E March 31, 2015, 8:37 a.m. OK Java 8 TESTS 72 778 0 2300
7668517 dimatomp E Sept. 2, 2014, 3:11 p.m. OK Java 8 TESTS 72 1996 6246400 2300
60700845 Dukkha E Sept. 17, 2019, 12:09 a.m. OK Java 8 TESTS 72 3056 0 2300
8760377 AlexFetisov E Nov. 20, 2014, 4:07 a.m. OK Java 8 TESTS 72 3368 181555200 2300
58061668 vjudge3 E July 31, 2019, 7:38 a.m. OK MS C++ TESTS 72 342 5222400 2300
58061371 vjudge1 E July 31, 2019, 7:32 a.m. OK MS C++ TESTS 72 342 5222400 2300
58052257 vjudge3 E July 31, 2019, 3:08 a.m. OK MS C++ TESTS 72 342 5632000 2300
58066073 vjudge2 E July 31, 2019, 8:58 a.m. OK MS C++ TESTS 72 372 24268800 2300
810772 NuM E Oct. 28, 2011, 5:39 a.m. OK MS C++ TESTS 72 380 7884800 2300
809830 NuM E Oct. 27, 2011, 11:02 p.m. OK MS C++ TESTS 72 380 7884800 2300
809503 NALP E Oct. 27, 2011, 8:31 p.m. OK MS C++ TESTS 71 440 5734400 2300
825986 c_loud26 E Nov. 3, 2011, 7:43 a.m. OK MS C++ TESTS 72 450 10240000 2300
806097 sjtu_pigoneand E Oct. 27, 2011, 4:32 p.m. OK MS C++ TESTS 71 550 19046400 2300
806813 natalia E Oct. 27, 2011, 4:44 p.m. OK MS C++ TESTS 71 590 2252800 2300
58066730 vjudge5 E July 31, 2019, 9:10 a.m. OK MS C++ 2017 TESTS 72 1994 1228800 2300

remove filters

Back to search problems