Codeforces Round 179 (Div. 1)

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
295 Codeforces Round 179 (Div. 1) FINISHED False 7200 372004197 April 11, 2013, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 701 ) E Yaroslav and Points PROGRAMMING data structures 2500

B'Yaroslav has n points that lie on the Ox axis. The coordinate of the first point is x1, the coordinate of the second point is x2, ..., the coordinate of the n-th point is -- xn. Now Yaroslav wants to execute m queries, each of them is of one of the two following types: Help Yaroslav. The first line contains integer n -- the number of points (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105). The second line contains distinct integers x1, xe2 x80 x89x2, xe2 x80 x89..., xe2 x80 x89xn -- the coordinates of points (|xi| xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109). The third line contains integer m -- the number of queries (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105). The next m lines contain the queries. The j-th line first contains integer tj (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89tj xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892) -- the query type. If tj xe2 x80 x89= xe2 x80 x891, then it is followed by two integers pj and dj (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89pj xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89|dj| xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891000). If tj xe2 x80 x89= xe2 x80 x892, then it is followed by two integers lj and rj ( xe2 x80 x89- xe2 x80 x89109 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89lj xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89rj xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109). It is guaranteed that at any moment all the points have distinct coordinates. For each type 2 query print the answer on a single line. Print the answers in the order, in which the queries follow in the input. Please, do not use the %lld specifier to read or write 64-bit integers in C++. It is preferred to use the cin, cout streams of the %I64d specifier.'...

Tutorials

Codeforces Round #179 tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
3521022 vlad107 E April 12, 2013, 10:07 p.m. OK Delphi TESTS 49 1687 26112000 2500
3536406 Alex_2oo8 E April 14, 2013, 3:48 p.m. OK FPC TESTS 49 937 240844800 2500
27965173 vjudge4 E June 22, 2017, 12:41 p.m. OK FPC TESTS 49 964 242483200 2500
27974153 vjudge4 E June 22, 2017, 11:33 p.m. OK FPC TESTS 49 996 242483200 2500
27974177 vjudge4 E June 22, 2017, 11:37 p.m. OK FPC TESTS 49 1090 242483200 2500
3513920 con_nha_ngheo E April 11, 2013, 6:14 p.m. OK FPC TESTS 49 1281 7782400 2500
3525769 popoffka E April 13, 2013, noon OK FPC TESTS 49 2156 180326400 2500
3723027 hxywtc E May 15, 2013, 9:41 a.m. OK FPC TESTS 49 3546 11980800 2500
4070101 tmt514 E July 14, 2013, 2:16 p.m. OK GNU C++ TESTS 49 203 3174400 2500
3511419 yeputons E April 11, 2013, 5:04 p.m. OK GNU C++ TESTS 49 203 4403200 2500
40989978 ReaLNero1 E July 30, 2018, 11:28 p.m. OK GNU C++ TESTS 49 218 3072000 2500
3512315 HELEN_KK E April 11, 2013, 5:20 p.m. OK GNU C++ TESTS 49 312 16588800 2500
4085880 dnk E July 17, 2013, 9:38 a.m. OK GNU C++ TESTS 49 312 22016000 2500
3553058 dovegx E April 16, 2013, 2:44 p.m. OK GNU C++ TESTS 49 328 30617600 2500
16381436 vjudge3 E Feb. 27, 2016, 11:59 a.m. OK GNU C++ TESTS 49 342 3584000 2500
5854589 Ruthles E Jan. 31, 2014, 7:25 a.m. OK GNU C++ TESTS 49 342 24780800 2500
4010312 gyarenas E July 4, 2013, 8:40 a.m. OK GNU C++ TESTS 49 343 4812800 2500
3515998 WoodcutKnife E April 12, 2013, 5:24 a.m. OK GNU C++ TESTS 49 343 15564800 2500
3516661 problem-solved E April 12, 2013, 8:57 a.m. OK GNU C++0x TESTS 49 359 23449600 2500
3527896 lcch E April 13, 2013, 4:45 p.m. OK GNU C++0x TESTS 49 390 21094400 2500
3516681 problem-solved E April 12, 2013, 9:02 a.m. OK GNU C++0x TESTS 49 390 23449600 2500
3516632 problem-solved E April 12, 2013, 8:47 a.m. OK GNU C++0x TESTS 49 390 23449600 2500
3619898 mruxim E April 25, 2013, 10:35 a.m. OK GNU C++0x TESTS 49 406 18432000 2500
5411185 niklasb E Dec. 11, 2013, 6:54 p.m. OK GNU C++0x TESTS 49 436 29696000 2500
6602176 Beyonds E May 12, 2014, 7:47 a.m. OK GNU C++0x TESTS 49 436 43724800 2500
3515353 roosephu E April 12, 2013, 12:37 a.m. OK GNU C++0x TESTS 49 453 5324800 2500
6560700 LGM E May 6, 2014, 8:14 a.m. OK GNU C++0x TESTS 49 466 20172800 2500
5838358 mayukuner E Jan. 30, 2014, 12:26 p.m. OK GNU C++0x TESTS 49 468 23244800 2500
57174226 vjudge2 E July 17, 2019, 4:48 a.m. OK GNU C++11 TESTS 49 310 22630400 2500
26467072 McGinn E April 18, 2017, 2:13 a.m. OK GNU C++11 TESTS 49 342 24883200 2500
27960645 The_Unbeatable E June 22, 2017, 8:40 a.m. OK GNU C++11 TESTS 49 342 30515200 2500
53767469 time_interspace E May 5, 2019, 1:50 a.m. OK GNU C++11 TESTS 49 372 256921600 2500
49138160 vjudge4 E Jan. 29, 2019, 8:49 a.m. OK GNU C++11 TESTS 49 374 28057600 2500
54787669 __23333 E May 29, 2019, 5:13 a.m. OK GNU C++11 TESTS 49 374 66969600 2500
17478965 ko_osaga E April 24, 2016, 11:19 a.m. OK GNU C++11 TESTS 49 404 18432000 2500
26750617 F202130100 E April 29, 2017, 2:32 p.m. OK GNU C++11 TESTS 49 404 26112000 2500
49142852 vjudge4 E Jan. 29, 2019, 11:07 a.m. OK GNU C++11 TESTS 49 404 42496000 2500
58203353 Alan_zhou E Aug. 3, 2019, 5:45 a.m. OK GNU C++11 TESTS 49 404 101785600 2500
49044502 autumn_eel E Jan. 27, 2019, 8:09 a.m. OK GNU C++14 TESTS 49 434 29696000 2500
37567232 kut_kjb1994 E April 24, 2018, 8:49 a.m. OK GNU C++14 TESTS 49 466 28876800 2500
50634208 vjudge5 E March 1, 2019, 10:55 a.m. OK GNU C++14 TESTS 49 466 70144000 2500
49203181 luogu_bot3 E Jan. 30, 2019, 1:07 p.m. OK GNU C++14 TESTS 49 468 260505600 2500
30207515 please_delete_account E Sept. 8, 2017, 4:29 p.m. OK GNU C++14 TESTS 49 498 6656000 2500
49886695 Smaug E Feb. 13, 2019, 10:09 p.m. OK GNU C++14 TESTS 49 498 18022400 2500
42478066 I_love_Y_UME E Sept. 5, 2018, 1:45 a.m. OK GNU C++14 TESTS 49 498 23244800 2500
49203076 luogu_bot5 E Jan. 30, 2019, 1:05 p.m. OK GNU C++14 TESTS 49 498 260505600 2500
49203003 vjudge2 E Jan. 30, 2019, 1:04 p.m. OK GNU C++14 TESTS 49 498 260505600 2500
49202984 stepsys E Jan. 30, 2019, 1:03 p.m. OK GNU C++14 TESTS 49 498 260505600 2500
54803569 nekko E May 29, 2019, 1:01 p.m. OK GNU C++17 TESTS 49 404 68096000 2500
49695699 vjudge3 E Feb. 10, 2019, 1:39 p.m. OK GNU C++17 TESTS 49 528 18022400 2500
49695768 L.Sunitha E Feb. 10, 2019, 1:41 p.m. OK GNU C++17 TESTS 49 530 18329600 2500
60341600 Mahir83 E Sept. 10, 2019, 11:04 a.m. OK GNU C++17 TESTS 49 560 26419200 2500
49604590 vjudge4 E Feb. 7, 2019, 6:47 p.m. OK GNU C++17 TESTS 49 560 65126400 2500
41684219 PEDY4000 E Aug. 17, 2018, 12:59 p.m. OK GNU C++17 TESTS 49 654 64921600 2500
66231401 idsigma E Dec. 3, 2019, 2:32 p.m. OK GNU C++17 TESTS 49 684 43827200 2500
46941442 vjudge3 E Dec. 12, 2018, 4:53 p.m. OK GNU C++17 TESTS 49 684 55398400 2500
52649704 ruo E April 12, 2019, 4:02 p.m. OK GNU C++17 TESTS 49 716 22016000 2500
49756270 vjudge1 E Feb. 11, 2019, 6:34 a.m. OK GNU C++17 TESTS 49 746 48844800 2500
3518782 uwi E April 12, 2013, 3:39 p.m. OK Java 6 TESTS 49 562 307200 2500
3558262 Quimbee E April 17, 2013, 9:43 p.m. OK Java 6 TESTS 49 953 9318400 2500
3629423 mmaxio E April 25, 2013, 5:33 p.m. OK Java 7 TESTS 49 859 102400 2500
3721982 vsb E May 15, 2013, 12:52 a.m. OK Java 7 TESTS 49 906 2355200 2500
3721995 vsb E May 15, 2013, 1:02 a.m. OK Java 7 TESTS 49 937 2355200 2500
3578025 OgieKako E April 20, 2013, 1:54 a.m. OK Java 7 TESTS 49 984 31846400 2500
3516357 Jokser E April 12, 2013, 7:31 a.m. OK Java 7 TESTS 49 1171 819200 2500
3512026 niyaznigmatul E April 11, 2013, 5:15 p.m. OK Java 7 TESTS 49 1343 0 2500
4141600 gcd_fuck E July 23, 2013, 2:33 p.m. OK Java 7 TESTS 49 1625 87756800 2500
3563193 XilinX E April 19, 2013, 9:06 a.m. OK MS C++ TESTS 49 265 26009600 2500
3733659 BIT_silence E May 18, 2013, 1:12 p.m. OK MS C++ TESTS 49 281 50380800 2500
3555060 fatsheep_LF E April 17, 2013, 6 a.m. OK MS C++ TESTS 49 328 31232000 2500
3733653 BIT_silence E May 18, 2013, 1:10 p.m. OK MS C++ TESTS 49 343 50483200 2500
3557161 hgame E April 17, 2013, 3:49 p.m. OK MS C++ TESTS 49 375 17408000 2500
10646311 AleksanderBalobanov E April 10, 2015, 8:23 a.m. OK MS C++ TESTS 49 436 44748800 2500
3541426 aa2985759 E April 15, 2013, 2:32 p.m. OK MS C++ TESTS 49 515 54476800 2500
3514364 Shef E April 11, 2013, 7:04 p.m. OK MS C++ TESTS 49 531 28569600 2500
3512118 aa2985759 E April 11, 2013, 5:16 p.m. OK MS C++ TESTS 49 625 19251200 2500
4164530 vjudge1 E July 25, 2013, 2:48 p.m. OK MS C++ TESTS 49 750 30822400 2500

remove filters

Back to search problems