Codeforces Round 143 (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
231 Codeforces Round 143 (Div. 2) FINISHED False 7200 426781823 Oct. 7, 2012, 3:30 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 4327 ) D Magic Box PROGRAMMING brute force geometry 1600

One day Vasya was going home when he saw a box lying on the road. The box can be represented as a rectangular parallelepiped. Vasya needed no time to realize that the box is special, as all its edges are parallel to the coordinate axes, one of its vertices is at point (0, 0, 0) , and the opposite one is at point ( x 1 , y 1 , z 1 ) . The six faces of the box contain some numbers a 1 , a 2 , ..., a 6 , exactly one number right in the center of each face. The numbers are located on the box like that: number a 1 is written on the face that lies on the ZOX plane; a 2 is written on the face, parallel to the plane from the previous point; a 3 is written on the face that lies on the XOY plane; a 4 is written on the face, parallel to the plane from the previous point; a 5 is written on the face that lies on the YOZ plane; a 6 is written on the face, parallel to the plane from the previous point. At the moment Vasya is looking at the box from point ( x , y , z ) . Find the sum of numbers that Vasya sees. Note that all faces of the box are not transparent and Vasya can't see the numbers through the box. The picture contains transparent faces just to make it easier to perceive. You can consider that if Vasya is looking from point, lying on the plane of some face, than he can not see the number that is written on this face. It is enough to see the center of a face to see the corresponding number for Vasya. Also note that Vasya always reads correctly the a i numbers that he sees, independently of their rotation, angle and other factors (that is, for example, if Vasya sees some a i = 6 , then he can't mistake this number for 9 and so on). The fist input line contains three space-separated integers x , y and z ( | x |, | y |, | z | ≤ 10 6 ) — the coordinates of Vasya's position in space. The second line contains three space-separated integers x 1 , y 1 , z 1 ( 1 ≤ x 1 , y 1 , z 1 ≤ 10 6 ) — the coordinates of the box's vertex that is opposite to the vertex at point (0, 0

Tutorials

Tutorial Codeforces Round #143

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
38897576 Scut82 D June 2, 2018, 4:10 p.m. OK GNU C++ TESTS 35 60 3481600 1600
38871889 Scut82 D June 2, 2018, 3:30 a.m. OK GNU C++ TESTS 35 60 3481600 1600
40990656 ReaLNero1 D July 31, 2018, 12:06 a.m. OK GNU C++ TESTS 35 62 0 1600
39075946 ivanilos D June 9, 2018, 6:11 p.m. OK GNU C++ TESTS 35 62 0 1600
38898162 Scut82 D June 2, 2018, 4:35 p.m. OK GNU C++ TESTS 35 62 3481600 1600
51944857 Self_patroit D March 28, 2019, 4:19 p.m. OK GNU C11 TESTS 35 30 0 1600
51812454 vjudge1 D March 25, 2019, 6:54 a.m. OK GNU C11 TESTS 35 30 0 1600
51824154 vjudge3 D March 25, 2019, 1:21 p.m. OK GNU C11 TESTS 35 60 0 1600
51867181 kabir2018331125 D March 26, 2019, 3:43 p.m. OK GNU C11 TESTS 35 60 0 1600
51893451 vjudge5 D March 27, 2019, 10:22 a.m. OK GNU C11 TESTS 35 60 0 1600
51907823 vjudge5 D March 27, 2019, 4:30 p.m. OK GNU C11 TESTS 35 60 0 1600
51958455 Adith082 D March 29, 2019, 5:05 a.m. OK GNU C11 TESTS 35 60 0 1600
51798459 vjudge4 D March 24, 2019, 4:37 p.m. OK GNU C11 TESTS 35 60 0 1600
58925746 kaiboy D Aug. 16, 2019, 7:24 p.m. OK GNU C11 TESTS 35 62 0 1600
62058393 2018331047 D Oct. 7, 2019, 12:51 p.m. OK GNU C11 TESTS 35 62 0 1600
45325179 Alessa0 D Nov. 5, 2018, 12:35 p.m. OK GNU C++11 TESTS 35 30 0 1600
59521841 MavrosOplarxigos D Aug. 26, 2019, 12:08 p.m. OK GNU C++11 TESTS 35 60 0 1600
57939795 vjudge3 D July 29, 2019, 12:10 p.m. OK GNU C++11 TESTS 35 60 0 1600
39198408 CaptainMAK D June 12, 2018, 5:55 p.m. OK GNU C++11 TESTS 35 60 0 1600
47530124 MickyOr D Dec. 26, 2018, 6:23 p.m. OK GNU C++11 TESTS 35 60 0 1600
40850977 dhaw92 D July 27, 2018, 2:35 p.m. OK GNU C++11 TESTS 35 60 0 1600
38929149 kurtgodel95 D June 3, 2018, 7:30 p.m. OK GNU C++11 TESTS 35 60 3481600 1600
68556385 Leks360 D Jan. 10, 2020, 5:44 p.m. OK GNU C++11 TESTS 35 62 0 1600
68879212 mijanur_rmn D Jan. 15, 2020, 6:05 p.m. OK GNU C++11 TESTS 35 62 0 1600
69617587 CF_WINTER D Jan. 27, 2020, 1:35 p.m. OK GNU C++11 TESTS 35 62 0 1600
65693231 Khaled_Salem D Nov. 25, 2019, 6:22 a.m. OK GNU C++14 TESTS 35 30 0 1600
68151836 698592418 D Jan. 4, 2020, 7:14 a.m. OK GNU C++14 TESTS 35 30 0 1600
54838747 gupta_samarth D May 30, 2019, 11:55 a.m. OK GNU C++14 TESTS 35 30 0 1600
57939910 vjudge2 D July 29, 2019, 12:12 p.m. OK GNU C++14 TESTS 35 30 0 1600
60365885 ankusht D Sept. 10, 2019, 8:50 p.m. OK GNU C++14 TESTS 35 30 0 1600
61562068 rohan_ishwarkar D Sept. 30, 2019, 3:55 p.m. OK GNU C++14 TESTS 35 30 0 1600
61599930 Molukhyyeh D Oct. 1, 2019, 10:29 a.m. OK GNU C++14 TESTS 35 30 0 1600
64535479 salted_Corn D Nov. 8, 2019, 4:50 p.m. OK GNU C++14 TESTS 35 30 0 1600
54494328 sigma_g D May 22, 2019, 4:57 p.m. OK GNU C++14 TESTS 35 30 0 1600
49784939 AyaBenSaad D Feb. 11, 2019, 7:20 p.m. OK GNU C++14 TESTS 35 30 0 1600
41667543 ACACACACACACWACACACACAC D Aug. 17, 2018, 1:29 a.m. OK GNU C++17 TESTS 35 30 0 1600
69526831 aayueshbar D Jan. 25, 2020, 3:27 p.m. OK GNU C++17 TESTS 35 30 0 1600
61088352 azatega D Sept. 22, 2019, 7:23 p.m. OK GNU C++17 TESTS 35 30 0 1600
57020629 black_immortal D July 14, 2019, 1:52 p.m. OK GNU C++17 TESTS 35 30 0 1600
54829783 halohalo D May 30, 2019, 8:23 a.m. OK GNU C++17 TESTS 35 30 0 1600
54246542 abhishekroy98 D May 16, 2019, 3:09 p.m. OK GNU C++17 TESTS 35 30 0 1600
53605768 blacklogic D May 1, 2019, 10:17 a.m. OK GNU C++17 TESTS 35 30 0 1600
52533560 border D April 9, 2019, 2:30 p.m. OK GNU C++17 TESTS 35 30 0 1600
51975134 fustian D March 29, 2019, 2:02 p.m. OK GNU C++17 TESTS 35 30 0 1600
41668253 zzr1631032 D Aug. 17, 2018, 2:12 a.m. OK GNU C++17 TESTS 35 30 0 1600
67653913 kashishsingh8700 D Dec. 26, 2019, 1:12 p.m. OK Java 11 TESTS 35 404 0 1600
47518962 jenish9599 D Dec. 26, 2018, 11:51 a.m. OK Java 8 TESTS 35 218 0 1600
47832469 sameer_hack D Jan. 2, 2019, 7:56 a.m. OK Java 8 TESTS 35 218 0 1600
54083133 amolpratap007 D May 14, 2019, 5:22 a.m. OK Java 8 TESTS 35 218 0 1600
56531989 mennafadali D July 4, 2019, 8:22 p.m. OK Java 8 TESTS 35 218 0 1600
57780856 sameep17264 D July 26, 2019, 5:54 a.m. OK Java 8 TESTS 35 218 0 1600
62913059 adityagupta1089 D Oct. 19, 2019, 7:54 a.m. OK Java 8 TESTS 35 218 0 1600
66245664 prem_cse D Dec. 3, 2019, 8:21 p.m. OK Java 8 TESTS 35 218 0 1600
58132737 can_do D Aug. 1, 2019, 2:54 p.m. OK Java 8 TESTS 35 248 0 1600
59582360 Sasuke-u D Aug. 27, 2019, 4:35 p.m. OK Java 8 TESTS 35 248 0 1600
58834637 Dukkha D Aug. 14, 2019, 7:55 p.m. OK Java 8 TESTS 35 248 0 1600
51908158 vjudge2 D March 27, 2019, 4:41 p.m. OK MS C++ TESTS 35 62 0 1600
51865386 vjudge1 D March 26, 2019, 2:55 p.m. OK MS C++ TESTS 35 62 0 1600
57940055 vjudge3 D July 29, 2019, 12:15 p.m. OK MS C++ TESTS 35 62 0 1600
57939725 vjudge3 D July 29, 2019, 12:08 p.m. OK MS C++ TESTS 35 62 0 1600
57939647 vjudge3 D July 29, 2019, 12:06 p.m. OK MS C++ TESTS 35 62 0 1600
57939589 vjudge3 D July 29, 2019, 12:05 p.m. OK MS C++ TESTS 35 62 0 1600
57939084 vjudge5 D July 29, 2019, 11:55 a.m. OK MS C++ TESTS 35 62 0 1600
54733240 vjudge2 D May 28, 2019, 2:41 a.m. OK MS C++ TESTS 35 62 0 1600
57938791 vjudge4 D July 29, 2019, 11:48 a.m. OK MS C++ TESTS 35 62 3993600 1600
56717552 natalia18 D July 8, 2019, 3:17 p.m. OK MS C++ 2017 TESTS 35 62 0 1600
56754716 natalia18 D July 9, 2019, 1:23 p.m. OK MS C++ 2017 TESTS 35 62 0 1600
67257150 pikachan14 D Dec. 19, 2019, 11:34 p.m. OK MS C++ 2017 TESTS 35 62 307200 1600
44474164 YESMAths D Oct. 18, 2018, 7:58 a.m. OK PyPy 2 TESTS 35 248 0 1600
59361478 Claustrophobic_Penguin D Aug. 23, 2019, 3:28 p.m. OK PyPy 2 TESTS 35 404 0 1600
39136545 ayushsinha1996 D June 11, 2018, 4:46 a.m. OK PyPy 3 TESTS 35 218 1024000 1600
50328248 Mr.Inconsistent D Feb. 22, 2019, 5:27 p.m. OK PyPy 3 TESTS 35 278 0 1600
53208070 donjar D April 24, 2019, 1:27 a.m. OK PyPy 3 TESTS 35 280 0 1600
65488819 motabhai_ D Nov. 21, 2019, 1:49 p.m. OK PyPy 3 TESTS 35 280 0 1600
38934937 toxic_hack D June 4, 2018, 5:29 a.m. OK Python 2 TESTS 35 218 6041600 1600
60733628 sorry_im_smurfing D Sept. 17, 2019, 4:38 p.m. OK Python 2 TESTS 35 342 0 1600
64043345 noobcoder92 D Nov. 1, 2019, 6:34 p.m. OK Python 2 TESTS 35 374 0 1600
46545961 annazarryuu D Dec. 3, 2018, 2:41 p.m. OK Python 3 TESTS 35 248 0 1600
46546254 annazarryuu D Dec. 3, 2018, 2:54 p.m. OK Python 3 TESTS 35 248 0 1600

remove filters

Back to search problems