Tinkoff Internship Warmup Round 2018 and Codeforces Round 475 (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
963 Tinkoff Internship Warmup Round 2018 and Codeforces Round 475 (Div. 1) FINISHED False 7200 207849299 April 17, 2018, 2:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 592 ) C Cutting Rectangle PROGRAMMING brute force math number theory 2600

B"A rectangle with sides A and B is cut into rectangles with cuts parallel to its sides. For example, if p horizontal and q vertical cuts were made, (p + 1) cdot (q + 1) rectangles were left after the cutting. After the cutting, rectangles were of n different types. Two rectangles are different if at least one side of one rectangle isn't equal to the corresponding side of the other. Note that the rectangle can't be rotated, this means that rectangles a x b and b x a are considered different if a neq b . For each type of rectangles, lengths of the sides of rectangles are given along with the amount of the rectangles of this type that were left after cutting the initial rectangle. Calculate the amount of pairs (A; B) such as the given rectangles could be created by cutting the rectangle with sides of lengths A and B . Note that pairs (A; B) and (B; A) are considered different when A neq B . The first line consists of a single integer n ( 1 <= q n <= q 2 cdot 10^{5} ) -- amount of different types of rectangles left after cutting the initial rectangle. The next n lines each consist of three integers w_{i}, h_{i}, c_{i} (1 <= q w_{i}, h_{i}, c_{i} <= q 10^{12}) -- the lengths of the sides of the rectangles of this type and the amount of the rectangles of this type. It is guaranteed that the rectangles of the different types are different. Output one integer -- the answer to the problem. In the first sample there are three suitable pairs: (1; 9) , (3; 3) and (9; 1) . In the second sample case there are 6 suitable pairs: (2; 220) , (4; 110) , (8; 55) , (10; 44) , (20; 22) and (40; 11) . Here the sample of cut for (20; 22) . The third sample has no suitable pairs. "...

Tutorials

Editorial Tinkoff Internship Warmup Round 2018 and Codeforces Round #475 (Div. 1 + Div. 2)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
69879577 hos.lyric C Jan. 31, 2020, 5:48 a.m. OK D TESTS 80 296 7270400 2600
37501872 zhenGG C April 21, 2018, 3:19 a.m. OK GNU C++ TESTS 80 93 8601600 2600
39756093 ilnil C June 29, 2018, 2:07 a.m. OK GNU C++ TESTS 80 108 248320000 2600
40932372 ReaLNero1 C July 30, 2018, 1:45 a.m. OK GNU C++ TESTS 80 109 4812800 2600
37595175 _mangoyang C April 25, 2018, 11:36 a.m. OK GNU C++ TESTS 80 109 9113600 2600
38347222 DQS C May 17, 2018, 11:45 a.m. OK GNU C++ TESTS 80 124 11264000 2600
37860957 cdgyp C May 3, 2018, 11:51 a.m. OK GNU C++ TESTS 80 139 27852800 2600
39790785 hankairu C June 30, 2018, 7:31 a.m. OK GNU C++ TESTS 80 202 5836800 2600
37550435 XingGeRuCi C April 23, 2018, 12:21 p.m. OK GNU C++ TESTS 80 202 14540800 2600
37407344 JOHNKRAM C April 17, 2018, 3:17 p.m. OK GNU C++ TESTS 80 217 13107200 2600
41426902 iamz C Aug. 10, 2018, 9:54 a.m. OK GNU C++ TESTS 80 218 6758400 2600
50350850 Gloid C Feb. 23, 2019, 8:28 a.m. OK GNU C++11 TESTS 80 93 4812800 2600
38529789 nowhere132 C May 22, 2018, 9:16 a.m. OK GNU C++11 TESTS 80 93 6451200 2600
42547931 ldy419 C Sept. 6, 2018, 10:15 a.m. OK GNU C++11 TESTS 80 93 14643200 2600
49129382 ZqlwMatt C Jan. 29, 2019, 2:35 a.m. OK GNU C++11 TESTS 80 93 16588800 2600
48205414 luogu_bot1 C Jan. 11, 2019, 8:28 a.m. OK GNU C++11 TESTS 80 109 14028800 2600
48205375 Althen C Jan. 11, 2019, 8:27 a.m. OK GNU C++11 TESTS 80 109 14028800 2600
42547892 ldy419 C Sept. 6, 2018, 10:13 a.m. OK GNU C++11 TESTS 80 109 14643200 2600
37450119 q234rty C April 19, 2018, 1:22 a.m. OK GNU C++11 TESTS 80 140 23961600 2600
37475229 panda_2134 C April 20, 2018, 1:10 a.m. OK GNU C++11 TESTS 80 155 10956800 2600
48325421 CrazyTeaMajor C Jan. 13, 2019, 11:35 a.m. OK GNU C++11 TESTS 80 171 14028800 2600
55737660 Scut82 C June 19, 2019, 5:30 a.m. OK GNU C++14 TESTS 80 202 18432000 2600
55737609 Scut82 C June 19, 2019, 5:28 a.m. OK GNU C++14 TESTS 80 202 18432000 2600
55737592 Scut82 C June 19, 2019, 5:27 a.m. OK GNU C++14 TESTS 80 202 18432000 2600
61828970 xzt_2 C Oct. 4, 2019, 5:55 a.m. OK GNU C++14 TESTS 80 217 14643200 2600
38556385 spj_29 C May 23, 2018, 8:57 a.m. OK GNU C++14 TESTS 80 233 5734400 2600
69268244 pikmike C Jan. 21, 2020, 7:31 p.m. OK GNU C++14 TESTS 80 234 6656000 2600
37467436 yrz C April 19, 2018, 4:05 p.m. OK GNU C++14 TESTS 80 249 8192000 2600
37505249 Billyshuai C April 21, 2018, 6:35 a.m. OK GNU C++14 TESTS 80 249 8396800 2600
37477194 Yukimai C April 20, 2018, 4:36 a.m. OK GNU C++14 TESTS 80 249 11366400 2600
37416297 Navick C April 17, 2018, 6:01 p.m. OK GNU C++14 TESTS 80 264 11366400 2600
37450174 q234rty C April 19, 2018, 1:27 a.m. OK GNU C++17 TESTS 80 140 23859200 2600
39938383 LiChenKoh C July 4, 2018, 12:18 a.m. OK GNU C++17 TESTS 80 155 18841600 2600
69882028 maroonrk C Jan. 31, 2020, 6:44 a.m. OK GNU C++17 TESTS 80 249 14643200 2600
43384848 EduardoSantos C Sept. 24, 2018, 7:37 p.m. OK GNU C++17 TESTS 80 249 14643200 2600
64153148 Arpa C Nov. 3, 2019, 12:01 p.m. OK GNU C++17 TESTS 80 264 14643200 2600
46024095 Shayan.P C Nov. 21, 2018, 10:04 a.m. OK GNU C++17 TESTS 80 264 18944000 2600
37408411 alex9801 C April 17, 2018, 3:26 p.m. OK GNU C++17 TESTS 80 265 8192000 2600
37463505 ClemsonStark C April 19, 2018, 1:41 p.m. OK GNU C++17 TESTS 80 280 9113600 2600
54707560 mango_lassi C May 27, 2019, 6:02 a.m. OK GNU C++17 TESTS 80 280 12800000 2600
63664623 Roundgod C Oct. 28, 2019, 2:53 p.m. OK GNU C++17 TESTS 80 280 18432000 2600
37420135 f2lk6wf90d C April 17, 2018, 9:15 p.m. OK Haskell TESTS 80 998 119091200 2600
37420168 f2lk6wf90d C April 17, 2018, 9:17 p.m. OK Haskell TESTS 80 1029 119193600 2600
37404391 mmaxio C April 17, 2018, 2:51 p.m. OK Java 8 TESTS 80 249 26214400 2600
37730871 ntviet18 C April 29, 2018, 6:08 p.m. OK Java 8 TESTS 80 265 26112000 2600
37416735 uwi C April 17, 2018, 6:19 p.m. OK Java 8 TESTS 80 389 28672000 2600
37407066 Lewin C April 17, 2018, 3:15 p.m. OK Java 8 TESTS 80 389 61132800 2600
37476073 dalt C April 20, 2018, 2:43 a.m. OK Java 8 TESTS 80 451 52940800 2600
37556072 cplayer C April 23, 2018, 5:28 p.m. OK Java 8 TESTS 80 467 25804800 2600
37409328 tmwilliamlin168 C April 17, 2018, 3:34 p.m. OK Java 8 TESTS 80 624 58163200 2600
43387388 A01410597 C Sept. 24, 2018, 9:09 p.m. OK MS C++ TESTS 80 327 31539200 2600
68942868 YESMAths C Jan. 16, 2020, 3 p.m. OK PyPy 2 TESTS 80 1138 58265600 2600
68942541 YESMAths C Jan. 16, 2020, 2:54 p.m. OK PyPy 2 TESTS 80 1216 58470400 2600
37738723 251 C April 30, 2018, 3:55 a.m. OK Python 2 TESTS 80 1497 36761600 2600
37680846 251 C April 28, 2018, 9:08 a.m. OK Python 2 TESTS 80 1559 36761600 2600
38540172 Ali_Pi C May 22, 2018, 3:28 p.m. OK Python 3 TESTS 80 1465 26521600 2600
43390921 emamex98 C Sept. 25, 2018, 1:01 a.m. OK Python 3 TESTS 80 1575 27955200 2600

remove filters

Back to search problems