Codeforces Round 367 (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
706 Codeforces Round 367 (Div. 2) FINISHED False 7200 266246663 Aug. 11, 2016, 4:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1195 ) E Working routine PROGRAMMING data structures implementation 2600

B"Vasiliy finally got to work, where there is a huge amount of tasks waiting for him. Vasiliy is given a matrix consisting of n rows and m columns and q tasks. Each task is to swap two submatrices of the given matrix. For each task Vasiliy knows six integers ai, bi, ci, di, hi, wi, where ai is the index of the row where the top-left corner of the first rectangle is located, bi is the index of its column, ci is the index of the row of the top-left corner of the second rectangle, di is the index of its column, hi is the height of the rectangle and wi is its width. It's guaranteed that two rectangles in one query do not overlap and do not touch, that is, no cell belongs to both rectangles, and no two cells belonging to different rectangles share a side. However, rectangles are allowed to share an angle. Vasiliy wants to know how the matrix will look like after all tasks are performed. The first line of the input contains three integers n, m and q (2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891000, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89q xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8910 xe2 x80 x89000) -- the number of rows and columns in matrix, and the number of tasks Vasiliy has to perform. Then follow n lines containing m integers vi, xe2 x80 x89j (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89vi, xe2 x80 x89j xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) each -- initial values of the cells of the matrix. Each of the following q lines contains six integers ai, bi, ci, di, hi, wi (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai, xe2 x80 x89ci, xe2 x80 x89hi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89bi, xe2 x80 x89di, xe2 x80 x89wi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m). Print n lines containing m integers each -- the resulting matrix. "...

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
33895703 lzr_010506 E Jan. 4, 2018, 3:35 a.m. OK GNU C++ TESTS 65 717 14336000 2600
40562035 luogu_bot1 E July 20, 2018, 1:38 a.m. OK GNU C++ TESTS 65 717 48332800 2600
40561697 luogu_bot1 E July 20, 2018, 1:16 a.m. OK GNU C++ TESTS 65 733 48332800 2600
40562777 luogu_bot5 E July 20, 2018, 2:21 a.m. OK GNU C++ TESTS 65 733 96665600 2600
40060820 vjudge4 E July 7, 2018, 12:25 p.m. OK GNU C++ TESTS 65 748 13209600 2600
40060448 vjudge1 E July 7, 2018, 12:12 p.m. OK GNU C++ TESTS 65 842 12185600 2600
40561637 luogu_bot1 E July 20, 2018, 1:13 a.m. OK GNU C++ TESTS 65 889 48332800 2600
42411366 luogu_bot4 E Sept. 3, 2018, 1:22 a.m. OK GNU C++ TESTS 65 919 12288000 2600
40563355 eternalmelody E July 20, 2018, 2:55 a.m. OK GNU C++ TESTS 65 919 64307200 2600
38020104 vjudge4 E May 8, 2018, 12:21 p.m. OK GNU C++ TESTS 65 936 23756800 2600
40983876 ReaLNero1 E July 30, 2018, 7:04 p.m. OK GNU C++11 TESTS 65 530 12288000 2600
44481316 luogu_bot4 E Oct. 18, 2018, 10:28 a.m. OK GNU C++11 TESTS 65 530 145715200 2600
44480625 luogu_bot5 E Oct. 18, 2018, 10:06 a.m. OK GNU C++11 TESTS 65 530 145715200 2600
62344037 xhs7700 E Oct. 11, 2019, 6:40 a.m. OK GNU C++11 TESTS 65 545 48128000 2600
54086579 time_interspace E May 14, 2019, 7:47 a.m. OK GNU C++11 TESTS 65 546 24064000 2600
62344139 xhs7700 E Oct. 11, 2019, 6:43 a.m. OK GNU C++11 TESTS 65 576 48128000 2600
58571060 luogu_bot5 E Aug. 11, 2019, 10:13 a.m. OK GNU C++11 TESTS 65 607 145305600 2600
61593623 vjudge2 E Oct. 1, 2019, 7:57 a.m. OK GNU C++11 TESTS 65 608 12288000 2600
42819568 luogu_bot3 E Sept. 13, 2018, 5:08 a.m. OK GNU C++11 TESTS 65 608 28774400 2600
42819463 hjejeje E Sept. 13, 2018, 5:01 a.m. OK GNU C++11 TESTS 65 608 28774400 2600
38796286 Tosic E May 31, 2018, 9:30 a.m. OK GNU C++14 TESTS 65 826 15667200 2600
34934005 Just_a_jacket E Feb. 5, 2018, 5:09 a.m. OK GNU C++14 TESTS 65 826 16486400 2600
33207619 ytz123 E Dec. 13, 2017, 8:56 a.m. OK GNU C++14 TESTS 65 841 14028800 2600
62429919 HatsuneHan E Oct. 12, 2019, 3:30 p.m. OK GNU C++14 TESTS 65 842 12083200 2600
61595198 vjudge5 E Oct. 1, 2019, 8:33 a.m. OK GNU C++14 TESTS 65 842 13209600 2600
37420223 TadijaSebez E April 17, 2018, 9:21 p.m. OK GNU C++14 TESTS 65 857 15462400 2600
56270876 howard1005 E June 29, 2019, 12:01 p.m. OK GNU C++14 TESTS 65 920 20480000 2600
34938038 Just_a_jacket E Feb. 5, 2018, 8:26 a.m. OK GNU C++14 TESTS 65 935 30003200 2600
61598251 vjudge3 E Oct. 1, 2019, 9:46 a.m. OK GNU C++14 TESTS 65 966 17305600 2600
42786454 ZqlwMatt E Sept. 12, 2018, 4:46 a.m. OK GNU C++14 TESTS 65 1029 12083200 2600
61960670 vjudge2 E Oct. 6, 2019, 7:22 a.m. OK GNU C++17 TESTS 65 639 13312000 2600
52978987 vjudge5 E April 18, 2019, 5:08 p.m. OK GNU C++17 TESTS 65 795 12185600 2600
45668017 cant_worse_more E Nov. 13, 2018, 8:51 a.m. OK GNU C++17 TESTS 65 811 12390400 2600
61593158 hearthewindsing E Oct. 1, 2019, 7:46 a.m. OK GNU C++17 TESTS 65 811 13209600 2600
60316077 1ulia E Sept. 9, 2019, 5:58 p.m. OK GNU C++17 TESTS 65 811 13209600 2600
67058147 swust5120177231 E Dec. 17, 2019, 7:53 a.m. OK GNU C++17 TESTS 65 811 16281600 2600
62393600 vjudge3 E Oct. 12, 2019, 4:11 a.m. OK GNU C++17 TESTS 65 826 20480000 2600
52477893 Gene_Liu E April 8, 2019, 1:51 a.m. OK GNU C++17 TESTS 65 826 24064000 2600
62393568 vjudge1 E Oct. 12, 2019, 4:09 a.m. OK GNU C++17 TESTS 65 842 20480000 2600
47553260 Gertab E Dec. 27, 2018, 2:16 p.m. OK GNU C++17 TESTS 65 873 12902400 2600
58129471 SpargelTarzan E Aug. 1, 2019, 1:44 p.m. OK Java 8 TESTS 65 1232 70963200 2600
39680491 Kharouba E June 26, 2018, 4:09 p.m. OK Java 8 TESTS 65 1419 38400000 2600
39601403 mariem_kandil E June 24, 2018, 12:06 p.m. OK Java 8 TESTS 65 2152 33894400 2600
39955462 Hoda_Hisham E July 4, 2018, 12:43 p.m. OK Java 8 TESTS 65 2402 84172800 2600
62527893 vjudge3 E Oct. 13, 2019, 6:03 p.m. OK MS C++ TESTS 65 748 12083200 2600
63023940 vjudge1 E Oct. 20, 2019, 3:35 p.m. OK MS C++ TESTS 65 748 24064000 2600
64161605 vjudge4 E Nov. 3, 2019, 2:43 p.m. OK MS C++ TESTS 65 779 12185600 2600
50665241 vjudge1 E March 2, 2019, 3:33 a.m. OK MS C++ TESTS 65 780 12288000 2600
62320429 vjudge3 E Oct. 10, 2019, 4:33 p.m. OK MS C++ TESTS 65 873 12902400 2600
62250625 vjudge4 E Oct. 10, 2019, 9:09 a.m. OK MS C++ TESTS 65 998 24166400 2600
62248080 vjudge5 E Oct. 10, 2019, 7:50 a.m. OK MS C++ TESTS 65 1045 24166400 2600
62250447 vjudge1 E Oct. 10, 2019, 9:07 a.m. OK MS C++ TESTS 65 1060 24166400 2600
62433968 HatsuneHan E Oct. 12, 2019, 4:43 p.m. OK MS C++ TESTS 65 1107 12185600 2600
62434091 vjudge3 E Oct. 12, 2019, 4:44 p.m. OK MS C++ TESTS 65 1169 12185600 2600
62512015 vjudge3 E Oct. 13, 2019, 1:33 p.m. OK MS C++ 2017 TESTS 65 1013 12288000 2600
62512383 vjudge1 E Oct. 13, 2019, 1:38 p.m. OK MS C++ 2017 TESTS 65 1075 20172800 2600
62520514 vjudge5 E Oct. 13, 2019, 3:37 p.m. OK MS C++ 2017 TESTS 65 1107 12288000 2600
62322244 vjudge2 E Oct. 10, 2019, 5:08 p.m. OK MS C++ 2017 TESTS 65 1855 36454400 2600

remove filters

Back to search problems