Codeforces Round 234 (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
400 Codeforces Round 234 (Div. 2) FINISHED False 7200 343664997 March 5, 2014, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 978 ) E Inna and Binary Logic PROGRAMMING binary search bitmasks data structures 2400

B"Inna is fed up with jokes about female logic. So she started using binary logic instead. Inna has an array of n elements a1[1], xe2 x80 x89a1[2], xe2 x80 x89..., xe2 x80 x89a1[n]. Girl likes to train in her binary logic, so she does an exercise consisting of n stages: on the first stage Inna writes out all numbers from array a1, on the i-th (i xe2 x80 x89 xe2 x89 xa5 xe2 x80 x892) stage girl writes all elements of array ai, which consists of n xe2 x80 x89- xe2 x80 x89i xe2 x80 x89+ xe2 x80 x891 integers; the k-th integer of array ai is defined as follows: ai[k] xe2 x80 x89= xe2 x80 x89ai xe2 x80 x89- xe2 x80 x891[k] AND ai xe2 x80 x89- xe2 x80 x891[k xe2 x80 x89+ xe2 x80 x891]. Here AND is bit-wise binary logical operation. Dima decided to check Inna's skill. He asks Inna to change array, perform the exercise and say the sum of all elements she wrote out during the current exercise. Help Inna to answer the questions! 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) -- size of array a1 and number of Dima's questions. Next line contains n integers a1[1], xe2 x80 x89a1[2], xe2 x80 x89..., xe2 x80 x89a1[n] (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105) -- initial array elements. Each of next m lines contains two integers -- Dima's question description. Each question consists of two integers pi, xe2 x80 x89vi (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89pi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n; 0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89vi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105). For this question Inna should make a1[pi] equals vi, and then perform the exercise. Please, note that changes are saved from question to question. For each question print Inna's answer on a single line."...

Tutorials

Codeforces Round #234 (Div. 2) — Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
5944719 Gassa E March 5, 2014, 6:11 p.m. OK D TESTS 12 436 25600000 2400
5944787 Gassa E March 5, 2014, 6:15 p.m. OK D TESTS 12 452 23654400 2400
5944930 Gassa E March 5, 2014, 6:24 p.m. OK D TESTS 12 514 26112000 2400
5944905 Gassa E March 5, 2014, 6:23 p.m. OK D TESTS 12 514 30003200 2400
6008251 Misha100896 E March 13, 2014, 9:37 a.m. OK Delphi TESTS 12 2589 6860800 2400
6008230 Misha100896 E March 13, 2014, 9:34 a.m. OK Delphi TESTS 12 2932 6860800 2400
5947380 fangbohui E March 6, 2014, 2:29 a.m. OK FPC TESTS 12 498 16793600 2400
5963275 z55250825 E March 8, 2014, 2:10 p.m. OK FPC TESTS 12 764 266547200 2400
6011719 TheRealRoman E March 13, 2014, 7:12 p.m. OK FPC TESTS 12 1777 79360000 2400
5969140 vietdoan E March 9, 2014, 1:24 p.m. OK FPC TESTS 12 2168 81715200 2400
5934476 Alex_2oo8 E March 5, 2014, 3:47 p.m. OK FPC TESTS 12 2324 160358400 2400
40988974 ReaLNero1 E July 30, 2018, 10:30 p.m. OK GNU C++ TESTS 14 109 204800 2400
6012935 kkw32 E March 14, 2014, 4:15 a.m. OK GNU C++ TESTS 12 109 409600 2400
5994877 janko96 E March 11, 2014, 10:28 a.m. OK GNU C++ TESTS 12 109 409600 2400
14019974 130705009 E Nov. 2, 2015, 9:06 a.m. OK GNU C++ TESTS 14 124 204800 2400
6092635 thomastao E March 20, 2014, 4:08 p.m. OK GNU C++ TESTS 14 124 409600 2400
5957602 Logic_zys E March 7, 2014, 2:45 p.m. OK GNU C++ TESTS 12 124 409600 2400
19918012 vjudge2 E Aug. 17, 2016, 1:58 a.m. OK GNU C++ TESTS 14 124 2252800 2400
32744042 pegasas E Nov. 28, 2017, 8:26 a.m. OK GNU C++ TESTS 14 124 2560000 2400
11378839 xujiahe E June 1, 2015, 1:12 p.m. OK GNU C++ TESTS 14 139 204800 2400
8026477 catfish E Sept. 29, 2014, 2:25 p.m. OK GNU C++ TESTS 14 139 409600 2400
6135794 Lightless E March 25, 2014, 9:40 a.m. OK GNU C++0x TESTS 14 124 409600 2400
6135816 Lightless E March 25, 2014, 9:45 a.m. OK GNU C++0x TESTS 14 124 409600 2400
6135804 Lightless E March 25, 2014, 9:42 a.m. OK GNU C++0x TESTS 14 124 409600 2400
6129921 cinderela E March 24, 2014, 9:44 a.m. OK GNU C++0x TESTS 14 124 409600 2400
6135967 Lightless E March 25, 2014, 10:20 a.m. OK GNU C++0x TESTS 14 155 409600 2400
7049251 anta E July 8, 2014, 7:41 p.m. OK GNU C++0x TESTS 14 186 37273600 2400
7049225 anta E July 8, 2014, 7:32 p.m. OK GNU C++0x TESTS 14 202 37273600 2400
5964499 ycy247 E March 8, 2014, 6:45 p.m. OK GNU C++0x TESTS 12 451 409600 2400
5939957 anta E March 5, 2014, 4:44 p.m. OK GNU C++0x TESTS 12 608 14438400 2400
6006570 CountZero E March 13, 2014, 4:09 a.m. OK GNU C++0x TESTS 12 670 88780800 2400
61431736 rainboy E Sept. 28, 2019, 2:58 p.m. OK GNU C11 TESTS 14 1044 72908800 2400
57819888 py_ultron E July 26, 2019, 10:14 p.m. OK GNU C++11 TESTS 14 109 204800 2400
46059713 NRK7 E Nov. 22, 2018, 12:44 p.m. OK GNU C++11 TESTS 14 124 204800 2400
16441173 sensei11 E March 1, 2016, 12:48 p.m. OK GNU C++11 TESTS 14 124 204800 2400
15494309 HowardChung E Jan. 22, 2016, 7:49 a.m. OK GNU C++11 TESTS 14 124 204800 2400
57891528 lopare E July 28, 2019, 12:01 p.m. OK GNU C++11 TESTS 14 124 204800 2400
20924843 reku E Sept. 26, 2016, 12:22 p.m. OK GNU C++11 TESTS 14 124 1228800 2400
35864217 ______n______ E March 2, 2018, 11:04 p.m. OK GNU C++11 TESTS 14 124 2252800 2400
35863819 _____i_____ E March 2, 2018, 10:55 p.m. OK GNU C++11 TESTS 14 124 2252800 2400
35863769 _____k_____ E March 2, 2018, 10:53 p.m. OK GNU C++11 TESTS 14 124 2252800 2400
35870053 ______u______ E March 3, 2018, 6:22 a.m. OK GNU C++11 TESTS 14 124 2252800 2400
36435574 rawatds E March 20, 2018, 2:32 p.m. OK GNU C++14 TESTS 14 155 3788800 2400
34841846 Big_black_jujube E Feb. 2, 2018, 2:20 p.m. OK GNU C++14 TESTS 14 202 2867200 2400
45221130 abgupta531 E Nov. 2, 2018, 9:13 p.m. OK GNU C++14 TESTS 14 233 819200 2400
32089412 wust-flc E Nov. 6, 2017, 8:08 a.m. OK GNU C++14 TESTS 14 312 409600 2400
37599209 ZZZZone E April 25, 2018, 1:51 p.m. OK GNU C++14 TESTS 14 312 43417600 2400
32092865 wust-flc E Nov. 6, 2017, 11:46 a.m. OK GNU C++14 TESTS 14 342 409600 2400
49859577 rapel E Feb. 13, 2019, 8:51 a.m. OK GNU C++14 TESTS 14 576 3993600 2400
57800417 vjudge1 E July 26, 2019, 1:04 p.m. OK GNU C++14 TESTS 14 623 136704000 2400
57800485 vjudge3 E July 26, 2019, 1:05 p.m. OK GNU C++14 TESTS 14 639 136704000 2400
25179451 wrinx E March 3, 2017, 3:07 p.m. OK GNU C++14 TESTS 14 826 204492800 2400
56947324 cephian E July 12, 2019, 11:36 p.m. OK GNU C++17 TESTS 14 561 67891200 2400
49973145 roll_no_1 E Feb. 16, 2019, 4:03 a.m. OK GNU C++17 TESTS 14 1029 173568000 2400
39504248 cai_lw E June 22, 2018, 2:56 a.m. OK GNU C++17 TESTS 14 1107 15360000 2400
49973038 roll_no_1 E Feb. 16, 2019, 3:58 a.m. OK GNU C++17 TESTS 14 1107 192819200 2400
56681470 IhateProgramming E July 7, 2019, 6:44 p.m. OK GNU C++17 TESTS 14 1185 128614400 2400
67391255 meowmeow321 E Dec. 21, 2019, 7:52 p.m. OK GNU C++17 TESTS 14 1231 14131200 2400
60392237 segmentfault E Sept. 11, 2019, 1:42 p.m. OK GNU C++17 TESTS 14 1309 170188800 2400
56155157 harshhx17 E June 27, 2019, 9:51 a.m. OK GNU C++17 TESTS 14 1403 25088000 2400
57328473 ruo E July 19, 2019, 1:08 p.m. OK GNU C++17 TESTS 14 1450 21708800 2400
62075614 igba E Oct. 7, 2019, 6:18 p.m. OK GNU C++17 TESTS 14 1450 53043200 2400
5941723 mkirsche E March 5, 2014, 5:06 p.m. OK Java 6 TESTS 12 1872 137932800 2400
5956415 lazzrov E March 7, 2014, 11:36 a.m. OK Java 6 TESTS 12 2355 12697600 2400
5950771 lazzrov E March 6, 2014, 12:28 p.m. OK Java 6 TESTS 12 2932 12390400 2400
5945790 uwi E March 5, 2014, 7:41 p.m. OK Java 7 TESTS 12 280 0 2400
5938635 uwi E March 5, 2014, 4:30 p.m. OK Java 7 TESTS 12 389 102400 2400
5966921 hama-du E March 9, 2014, 6:51 a.m. OK Java 7 TESTS 12 545 12902400 2400
5945062 uwi E March 5, 2014, 6:33 p.m. OK Java 7 TESTS 12 998 142540800 2400
5943413 A.Elahi E March 5, 2014, 5:27 p.m. OK Java 7 TESTS 12 1512 7577600 2400
5956789 shamir0xe E March 7, 2014, 12:47 p.m. OK Java 7 TESTS 12 1700 72704000 2400
5951314 Mostafa.Gabriel E March 6, 2014, 1:39 p.m. OK Java 7 TESTS 12 1762 137113600 2400
5970920 miguelmaurizio E March 9, 2014, 7:52 p.m. OK Java 7 TESTS 12 1996 169676800 2400
5951714 net12k44 E March 6, 2014, 2:37 p.m. OK Java 7 TESTS 12 2137 48640000 2400
5962763 sig E March 8, 2014, 12:43 p.m. OK Java 7 TESTS 12 2526 42291200 2400
22142529 donli E Nov. 10, 2016, 5:58 a.m. OK Java 8 TESTS 14 701 12288000 2400
26809179 pitfall E May 2, 2017, 8:43 p.m. OK Java 8 TESTS 14 748 35020800 2400
10139434 niyaznigmatul E March 4, 2015, 12:21 a.m. OK Java 8 TESTS 14 795 0 2400
61431607 Dukkha E Sept. 28, 2019, 2:55 p.m. OK Java 8 TESTS 14 1668 118272000 2400
20294680 alibaba E Aug. 31, 2016, 5:47 a.m. OK Java 8 TESTS 14 2823 32665600 2400
6519048 antofik E May 1, 2014, 8:56 p.m. OK MS C# TESTS 14 248 18329600 2400
5967873 L_Ecry E March 9, 2014, 9:40 a.m. OK MS C++ TESTS 12 217 30720000 2400
5952570 kazamiyuuka E March 6, 2014, 4:57 p.m. OK MS C++ TESTS 12 327 10035200 2400
5942953 Milanin E March 5, 2014, 5:22 p.m. OK MS C++ TESTS 12 374 17715200 2400
35196655 egorkozelskij123 E Feb. 13, 2018, 10:42 a.m. OK MS C++ TESTS 14 530 2457600 2400
35196617 egorkozelskij123 E Feb. 13, 2018, 10:41 a.m. OK MS C++ TESTS 14 530 2457600 2400
35196912 rojermartino E Feb. 13, 2018, 10:53 a.m. OK MS C++ TESTS 14 545 2457600 2400
35196663 egorkozelskij123 E Feb. 13, 2018, 10:43 a.m. OK MS C++ TESTS 14 545 2457600 2400
35196892 egorkozelskij123 E Feb. 13, 2018, 10:52 a.m. OK MS C++ TESTS 14 546 2457600 2400
35196591 egorkozelskij123 E Feb. 13, 2018, 10:40 a.m. OK MS C++ TESTS 14 592 2457600 2400
33629495 irrkez E Dec. 25, 2017, 8:04 p.m. OK MS C++ TESTS 14 592 2867200 2400

remove filters

Back to search problems