Codeforces Round 417 (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
812 Codeforces Round 417 (Div. 2) FINISHED False 7200 235496699 June 1, 2017, 2:15 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 6220 ) A Sagheer and Crossroads PROGRAMMING implementation 1300

B'Sagheer is walking in the street when he comes to an intersection of two roads. Each road can be represented as two parts where each part has 3 lanes getting into the intersection (one for each direction) and 3 lanes getting out of the intersection, so we have 4 parts in total. Each part has 4 lights, one for each lane getting into the intersection (l -- left, s -- straight, r -- right) and a light p for a pedestrian crossing. An accident is possible if a car can hit a pedestrian. This can happen if the light of a pedestrian crossing of some part and the light of a lane that can get to or from that same part are green at the same time. Now, Sagheer is monitoring the configuration of the traffic lights. Your task is to help him detect whether an accident is possible. The input consists of four lines with each line describing a road part given in a counter-clockwise order. Each line contains four integers l, s, r, p -- for the left, straight, right and pedestrian lights, respectively. The possible values are 0 for red light and 1 for green light. On a single line, print "YES" if an accident is possible, and "NO" otherwise. In the first example, some accidents are possible because cars of part 1 can hit pedestrians of parts 1 and 4. Also, cars of parts 2 and 3 can hit pedestrians of part 4. In the second example, no car can pass the pedestrian crossing of part 4 which is the only green pedestrian light. So, no accident can occur. '...

Tutorials

[Editorial] Codeforces Round #417 (Div. 2)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
27504877 ruban A June 1, 2017, 4:48 p.m. OK Delphi TESTS 93 15 33689600 1300
27670411 vjudge3 A June 8, 2017, 11:49 a.m. OK FPC TESTS 93 15 0 1300
27670426 vjudge5 A June 8, 2017, 11:50 a.m. OK FPC TESTS 93 15 0 1300
27671785 vjudge4 A June 8, 2017, 1 p.m. OK FPC TESTS 93 15 0 1300
27671792 vjudge5 A June 8, 2017, 1 p.m. OK FPC TESTS 93 15 0 1300
27678534 dambosin A June 8, 2017, 8:23 p.m. OK FPC TESTS 93 15 0 1300
27705578 lby2013 A June 10, 2017, 11:50 a.m. OK FPC TESTS 93 15 0 1300
27742150 faizzuns A June 12, 2017, 5:09 p.m. OK FPC TESTS 93 15 0 1300
27883992 tin2016_qmduc A June 18, 2017, 11:58 a.m. OK FPC TESTS 93 15 0 1300
32370172 Slonik A Nov. 17, 2017, 5:46 a.m. OK FPC TESTS 93 15 0 1300
27670335 vjudge1 A June 8, 2017, 11:45 a.m. OK FPC TESTS 93 15 0 1300
27741368 201605010330 A June 12, 2017, 4:17 p.m. OK GNU C TESTS 93 15 0 1300
32109251 NoSoul A Nov. 7, 2017, 3:39 a.m. OK GNU C TESTS 93 15 0 1300
29642719 coder_aang_ A Aug. 21, 2017, 11:57 a.m. OK GNU C TESTS 93 15 0 1300
27902892 welbertrana A June 19, 2017, 11:07 a.m. OK GNU C TESTS 93 15 0 1300
27816357 RitchieD A June 16, 2017, 4:09 a.m. OK GNU C TESTS 93 15 0 1300
27737119 Sai_Narsimha A June 12, 2017, 11:43 a.m. OK GNU C TESTS 93 15 0 1300
27718913 sayan1706 A June 11, 2017, 10:06 a.m. OK GNU C TESTS 93 15 0 1300
27709158 gbrocks A June 10, 2017, 3:58 p.m. OK GNU C TESTS 93 15 0 1300
27683351 Sakib_islam A June 9, 2017, 6:22 a.m. OK GNU C TESTS 93 15 0 1300
27623836 swhat A June 7, 2017, 1:56 a.m. OK GNU C TESTS 93 15 0 1300
32498006 vjudge2 A Nov. 20, 2017, 11:48 a.m. OK GNU C++ TESTS 93 15 0 1300
32335148 scutvj_1 A Nov. 15, 2017, 2:59 p.m. OK GNU C++ TESTS 93 15 0 1300
32242454 scutvj_1 A Nov. 12, 2017, 11:55 a.m. OK GNU C++ TESTS 93 15 0 1300
32112561 vjudge2 A Nov. 7, 2017, 8:06 a.m. OK GNU C++ TESTS 93 15 0 1300
32112484 vjudge1 A Nov. 7, 2017, 8 a.m. OK GNU C++ TESTS 93 15 0 1300
32112478 vjudge4 A Nov. 7, 2017, 7:59 a.m. OK GNU C++ TESTS 93 15 0 1300
32112141 vjudge2 A Nov. 7, 2017, 7:36 a.m. OK GNU C++ TESTS 93 15 0 1300
32112030 vjudge3 A Nov. 7, 2017, 7:29 a.m. OK GNU C++ TESTS 93 15 0 1300
32111919 vjudge1 A Nov. 7, 2017, 7:23 a.m. OK GNU C++ TESTS 93 15 0 1300
32111496 vjudge4 A Nov. 7, 2017, 7 a.m. OK GNU C++ TESTS 93 15 0 1300
27506933 f2lk6wf90d A June 1, 2017, 5:41 p.m. OK GNU C11 TESTS 93 15 0 1300
31135589 vjudge2 A Oct. 8, 2017, 7:11 a.m. OK GNU C11 TESTS 93 15 0 1300
27678949 ashraful16 A June 8, 2017, 9:04 p.m. OK GNU C11 TESTS 93 15 0 1300
27630363 vjudge4 A June 7, 2017, 10:26 a.m. OK GNU C11 TESTS 93 15 0 1300
27584403 Ishita_Sur_Apan A June 5, 2017, 2:01 p.m. OK GNU C11 TESTS 93 15 0 1300
27537289 GDZC A June 3, 2017, 6:20 a.m. OK GNU C11 TESTS 93 15 0 1300
27532072 Rabeeb A June 2, 2017, 9:50 p.m. OK GNU C11 TESTS 93 15 0 1300
27532036 Rabeeb A June 2, 2017, 9:46 p.m. OK GNU C11 TESTS 93 15 0 1300
27526997 GDZC A June 2, 2017, 3:33 p.m. OK GNU C11 TESTS 93 15 0 1300
27521930 sindog A June 2, 2017, 11:06 a.m. OK GNU C11 TESTS 93 15 0 1300
30307590 Sherzodbek_1996 A Sept. 13, 2017, 1:03 p.m. OK GNU C++11 TESTS 93 15 0 1300
32574820 D_XF A Nov. 23, 2017, 12:23 p.m. OK GNU C++11 TESTS 93 15 0 1300
32106379 mostafa_zahran A Nov. 6, 2017, 9:59 p.m. OK GNU C++11 TESTS 93 15 0 1300
31797950 iLoveIOI A Oct. 27, 2017, 1:57 p.m. OK GNU C++11 TESTS 93 15 0 1300
31213414 vjudge3 A Oct. 11, 2017, 10:29 a.m. OK GNU C++11 TESTS 93 15 0 1300
30619754 ag157 A Sept. 22, 2017, 4 p.m. OK GNU C++11 TESTS 93 15 0 1300
30547172 nyan101 A Sept. 20, 2017, 1:38 p.m. OK GNU C++11 TESTS 93 15 0 1300
30486157 ryultwo A Sept. 19, 2017, 12:56 a.m. OK GNU C++11 TESTS 93 15 0 1300
30387407 chuducanhchy A Sept. 16, 2017, 3:54 p.m. OK GNU C++11 TESTS 93 15 0 1300
30376905 m_alzantot A Sept. 16, 2017, 5:49 a.m. OK GNU C++11 TESTS 93 15 0 1300
32074243 sushantjain MalarV venture_walk A Nov. 5, 2017, 11:08 a.m. OK GNU C++14 TESTS 93 15 0 1300
31896155 scutvj_1 A Oct. 30, 2017, 2:12 p.m. OK GNU C++14 TESTS 93 15 0 1300
31926305 ivan100sic A Oct. 31, 2017, 3:43 p.m. OK GNU C++14 TESTS 93 15 0 1300
32012981 Kepperoni A Nov. 3, 2017, 4:02 p.m. OK GNU C++14 TESTS 93 15 0 1300
39282804 Magical_Messi A June 16, 2018, 8:48 a.m. OK GNU C++14 TESTS 93 15 0 1300
32489804 yongwhan A Nov. 20, 2017, 5:22 a.m. OK GNU C++14 TESTS 93 15 0 1300
32346744 mush2007 A Nov. 16, 2017, 4:11 a.m. OK GNU C++14 TESTS 93 15 0 1300
32344568 Em00n A Nov. 16, 2017, 2:14 a.m. OK GNU C++14 TESTS 93 15 0 1300
32194619 ftx456789 A Nov. 10, 2017, 12:16 p.m. OK GNU C++14 TESTS 93 15 0 1300
32087597 touchme-o A Nov. 6, 2017, 5:08 a.m. OK GNU C++14 TESTS 93 15 0 1300
58639461 vjudge3 A Aug. 12, 2019, 2:35 a.m. OK GNU C++17 TESTS 93 30 0 1300
49841249 RamJagannath A Feb. 12, 2019, 6:33 p.m. OK GNU C++17 TESTS 93 30 0 1300
43525520 tjpuxgg A Sept. 28, 2018, 11:05 a.m. OK GNU C++17 TESTS 93 30 0 1300
43410136 vjudge3 A Sept. 25, 2018, 1:10 p.m. OK GNU C++17 TESTS 93 30 0 1300
43408257 vjudge5 A Sept. 25, 2018, 12:25 p.m. OK GNU C++17 TESTS 93 30 307200 1300
68462414 reetik A Jan. 9, 2020, 6:36 p.m. OK GNU C++17 TESTS 93 31 0 1300
68965423 2018213529 A Jan. 17, 2020, 4:31 a.m. OK GNU C++17 TESTS 93 31 0 1300
69089396 aniket_daphale A Jan. 19, 2020, 9:35 a.m. OK GNU C++17 TESTS 93 31 0 1300
69514643 fahim_mahmood A Jan. 25, 2020, 11:35 a.m. OK GNU C++17 TESTS 93 31 0 1300
69088732 suyash-0603 A Jan. 19, 2020, 9:21 a.m. OK GNU C++17 TESTS 93 31 0 1300
34979908 upbeat A Feb. 6, 2018, 6:36 p.m. OK GNU C++17 Diagnostics TESTS 93 904 99840000 1300
27501486 yuki2006 A June 1, 2017, 3:57 p.m. OK Go TESTS 93 15 18124800 1300
27740587 Sir-Shurikat A June 12, 2017, 3:28 p.m. OK Go TESTS 93 30 18022400 1300
27740431 Sir-Shurikat A June 12, 2017, 3:17 p.m. OK Go TESTS 93 31 18022400 1300
27740619 Sir-Shurikat A June 12, 2017, 3:30 p.m. OK Go TESTS 93 46 17920000 1300
27549583 odomontois A June 3, 2017, 5:26 p.m. OK Haskell TESTS 93 15 0 1300
27511327 danielfleischman A June 1, 2017, 9:58 p.m. OK Haskell TESTS 93 15 8499200 1300
27707632 pnquanganh1986 A June 10, 2017, 2:05 p.m. OK Haskell TESTS 93 30 0 1300
27528211 sl0th A June 2, 2017, 4:35 p.m. OK Haskell TESTS 93 31 0 1300
27532537 wolf3000 A June 2, 2017, 10:47 p.m. OK Java 8 TESTS 93 108 0 1300
27882773 mona_hashem A June 18, 2017, 10:43 a.m. OK Java 8 TESTS 93 108 0 1300
27511156 ahmedayman96 A June 1, 2017, 9:38 p.m. OK Java 8 TESTS 93 108 0 1300
27504705 vor4alka A June 1, 2017, 4:45 p.m. OK Java 8 TESTS 93 108 0 1300
49833961 manish_98 A Feb. 12, 2019, 3:12 p.m. OK Java 8 TESTS 93 109 0 1300
27832385 ashubeckham A June 16, 2017, 7:43 p.m. OK Java 8 TESTS 93 109 0 1300
27719786 martin3 A June 11, 2017, 11:08 a.m. OK Java 8 TESTS 93 109 0 1300
27685645 Waylesange A June 9, 2017, 8:53 a.m. OK Java 8 TESTS 93 109 0 1300
27685011 rosnshah A June 9, 2017, 8:13 a.m. OK Java 8 TESTS 93 109 0 1300
27832410 ashubeckham A June 16, 2017, 7:45 p.m. OK Java 8 TESTS 93 109 0 1300
27576785 A07110420 A June 5, 2017, 6:18 a.m. OK JavaScript TESTS 93 31 0 1300
27514337 numbuh1 A June 2, 2017, 3:36 a.m. OK JavaScript TESTS 93 31 0 1300
27507071 Musin A June 1, 2017, 5:46 p.m. OK Kotlin TESTS 93 140 307200 1300
62222396 david_varela A Oct. 9, 2019, 5:55 p.m. OK Kotlin TESTS 93 156 1126400 1300
27509727 vadzimka A June 1, 2017, 7:43 p.m. OK Kotlin TESTS 93 170 1024000 1300
27513201 JhonTorres A June 2, 2017, 1:52 a.m. OK Mono C# TESTS 93 46 102400 1300
28649142 Nikitinho A July 17, 2017, 9:13 p.m. OK Mono C# TESTS 93 46 9318400 1300
35125421 abdo10002022 A Feb. 10, 2018, 1:19 p.m. OK Mono C# TESTS 93 46 9420800 1300
35106103 Ali_Fayed A Feb. 9, 2018, 9:32 p.m. OK Mono C# TESTS 93 62 11776000 1300
51078621 nemars A March 9, 2019, 10:22 a.m. OK Mono C# TESTS 93 77 3686400 1300
27507861 mike_4d A June 1, 2017, 6:17 p.m. OK MS C# TESTS 93 46 0 1300
27547487 Sorryforpartyrocking A June 3, 2017, 3:12 p.m. OK MS C# TESTS 93 46 102400 1300
27532008 GusztavSzmolik A June 2, 2017, 9:42 p.m. OK MS C# TESTS 93 46 102400 1300
27493774 zhymaoiing A June 1, 2017, 3:04 p.m. OK MS C# TESTS 93 46 102400 1300
27523734 Samyrai A June 2, 2017, 12:42 p.m. OK MS C# TESTS 93 46 102400 1300
28121948 HikeNoAce A June 28, 2017, 2:06 p.m. OK MS C# TESTS 93 46 9420800 1300
27599698 Liran A June 5, 2017, 7:41 p.m. OK MS C# TESTS 93 61 0 1300
27505933 og.kostya A June 1, 2017, 5:12 p.m. OK MS C# TESTS 93 61 102400 1300
27668757 yeshenk.s A June 8, 2017, 10:23 a.m. OK MS C# TESTS 93 62 2457600 1300
27599396 vitoshacademy A June 5, 2017, 7:21 p.m. OK MS C# TESTS 93 62 2457600 1300
27524159 phu1612508 A June 2, 2017, 1:05 p.m. OK MS C++ TESTS 93 15 0 1300
27554858 vjudge4 A June 4, 2017, 3:43 a.m. OK MS C++ TESTS 93 15 0 1300
27563799 Milena_Bulkina A June 4, 2017, 12:22 p.m. OK MS C++ TESTS 93 15 0 1300
30227849 vjudge5 A Sept. 9, 2017, 2:22 p.m. OK MS C++ TESTS 93 15 0 1300
32209931 scutvj_1 A Nov. 11, 2017, 4:06 a.m. OK MS C++ TESTS 93 15 0 1300
32215084 scutvj_1 A Nov. 11, 2017, 9:06 a.m. OK MS C++ TESTS 93 15 0 1300
30198056 Egoist_ A Sept. 8, 2017, 8:28 a.m. OK MS C++ TESTS 93 15 102400 1300
30988189 vjudge3 A Oct. 4, 2017, 9:21 a.m. OK MS C++ TESTS 93 15 102400 1300
27700000 adlovlac1503 A June 10, 2017, 4:48 a.m. OK MS C++ TESTS 93 15 102400 1300
27668864 Kovler A June 8, 2017, 10:29 a.m. OK MS C++ TESTS 93 15 102400 1300
63914227 Mad112233 A Oct. 31, 2019, 9:27 a.m. OK MS C++ 2017 TESTS 93 31 307200 1300
27506545 mayakin A June 1, 2017, 5:29 p.m. OK PHP TESTS 93 31 512000 1300
27506473 mayakin A June 1, 2017, 5:26 p.m. OK PHP TESTS 93 46 512000 1300
27548274 whybert A June 3, 2017, 3:57 p.m. OK PyPy 2 TESTS 93 62 0 1300
27504999 anuj_shah A June 1, 2017, 4:50 p.m. OK PyPy 2 TESTS 93 62 0 1300
27504486 Yash_ A June 1, 2017, 4:41 p.m. OK PyPy 2 TESTS 93 62 0 1300
27504775 JaniceV A June 1, 2017, 4:46 p.m. OK PyPy 2 TESTS 93 77 0 1300
27502002 godmar A June 1, 2017, 4:01 p.m. OK PyPy 2 TESTS 93 77 0 1300
27749674 thepotatoranch A June 13, 2017, 5:58 a.m. OK PyPy 2 TESTS 93 77 1228800 1300
27503622 har_vi A June 1, 2017, 4:13 p.m. OK PyPy 2 TESTS 93 187 7884800 1300
36071734 btcnhung.1299 A March 8, 2018, 1:06 p.m. OK PyPy 3 TESTS 93 77 19968000 1300
36076305 ARMACOTY A March 8, 2018, 4:01 p.m. OK PyPy 3 TESTS 93 78 19968000 1300
36073156 btcnhung.1299 A March 8, 2018, 1:55 p.m. OK PyPy 3 TESTS 93 78 19968000 1300
27504677 Vosatorp A June 1, 2017, 4:44 p.m. OK PyPy 3 TESTS 93 93 0 1300
29522580 Abdelrahman_Radwan A Aug. 17, 2017, 9:10 a.m. OK PyPy 3 TESTS 93 108 0 1300
27546441 TheProgrammer256 A June 3, 2017, 2:03 p.m. OK PyPy 3 TESTS 93 108 0 1300
27498654 SIvan A June 1, 2017, 3:36 p.m. OK PyPy 3 TESTS 93 108 0 1300
28185653 anon_hacker A July 1, 2017, 6:57 a.m. OK PyPy 3 TESTS 93 108 23142400 1300
27493609 SoMuchDrama A June 1, 2017, 3:02 p.m. OK PyPy 3 TESTS 93 109 0 1300
27497246 denny_sem A June 1, 2017, 3:26 p.m. OK PyPy 3 TESTS 93 124 0 1300
27919785 mav A June 20, 2017, 7:52 a.m. OK Python 2 TESTS 93 46 0 1300
27795151 WalterKovacs A June 15, 2017, 2 p.m. OK Python 2 TESTS 93 46 0 1300
27579258 franckmy A June 5, 2017, 9:11 a.m. OK Python 2 TESTS 93 46 0 1300
27519494 sampson.wong123 A June 2, 2017, 9:03 a.m. OK Python 2 TESTS 93 46 0 1300
27506459 Saurabh190598 A June 1, 2017, 5:26 p.m. OK Python 2 TESTS 93 46 0 1300
27495197 ManasG A June 1, 2017, 3:13 p.m. OK Python 2 TESTS 93 46 0 1300
27726868 parisam A June 11, 2017, 8:02 p.m. OK Python 2 TESTS 93 46 307200 1300
29425709 aiman_anees A Aug. 13, 2017, 6:38 a.m. OK Python 2 TESTS 93 46 4710400 1300
27870416 krull A June 17, 2017, 8:15 p.m. OK Python 2 TESTS 93 61 0 1300
27699389 ftuknights A June 10, 2017, 3:29 a.m. OK Python 2 TESTS 93 61 0 1300
27605045 micf A June 6, 2017, 4:43 a.m. OK Python 3 TESTS 93 61 0 1300
27508643 michael.dotsenko A June 1, 2017, 6:50 p.m. OK Python 3 TESTS 93 61 0 1300
27919723 tomdmitriev A June 20, 2017, 7:47 a.m. OK Python 3 TESTS 93 62 0 1300
27845022 Mohamed_Alaa_Kandeel A June 17, 2017, 11:46 a.m. OK Python 3 TESTS 93 62 0 1300
27776431 Vasiliy_48 A June 14, 2017, 4:13 p.m. OK Python 3 TESTS 93 62 0 1300
27719284 0w1 A June 11, 2017, 10:33 a.m. OK Python 3 TESTS 93 62 0 1300
27628537 Filippova A June 7, 2017, 8:28 a.m. OK Python 3 TESTS 93 62 0 1300
27617716 merolish A June 6, 2017, 4:01 p.m. OK Python 3 TESTS 93 62 0 1300
27581954 TianTengtt A June 5, 2017, 11:41 a.m. OK Python 3 TESTS 93 62 0 1300
27580621 orailly A June 5, 2017, 10:28 a.m. OK Python 3 TESTS 93 62 0 1300
27492922 Leonardone A June 1, 2017, 2:58 p.m. OK Ruby TESTS 93 93 204800 1300
29840400 Hillmouse A Aug. 28, 2017, 7:33 a.m. OK Rust TESTS 93 15 0 1300

remove filters

Back to search problems