Educational Codeforces Round 12

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
665 Educational Codeforces Round 12 FINISHED False 7200 270658799 April 20, 2016, 3 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2947 ) A Buses Between Cities PROGRAMMING implementation 1700

B"Buses run between the cities A and B, the first one is at 05:00 AM and the last one departs not later than at 11:59 PM. A bus from the city A departs every a minutes and arrives to the city B in a ta minutes, and a bus from the city B departs every b minutes and arrives to the city A in a tb minutes. The driver Simion wants to make his job diverse, so he counts the buses going towards him. Simion doesn't count the buses he meet at the start and finish. You know the time when Simion departed from the city A to the city B. Calculate the number of buses Simion will meet to be sure in his counting. The first line contains two integers a, xe2 x80 x89ta (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89a, xe2 x80 x89ta xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89120) -- the frequency of the buses from the city A to the city B and the travel time. Both values are given in minutes. The second line contains two integers b, xe2 x80 x89tb (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89b, xe2 x80 x89tb xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89120) -- the frequency of the buses from the city B to the city A and the travel time. Both values are given in minutes. The last line contains the departure time of Simion from the city A in the format hh:mm. It is guaranteed that there are a bus from the city A at that time. Note that the hours and the minutes are given with exactly two digits. Print the only integer z -- the number of buses Simion will meet on the way. Note that you should not count the encounters in cities A and B. In the first example Simion departs form the city A at 05:20 AM and arrives to the city B at 05:50 AM. He will meet the first 5 buses from the city B that departed in the period [05:00 AM - 05:40 AM]. Also Simion will meet a bus in the city B at 05:50 AM, but he will not count it. Also note that the first encounter will be between 05:26 AM and 05:27 AM (if we suggest that the buses are go with the sustained speed). "...

Tutorials

Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
17421464 AHTuTTuTyX A April 21, 2016, 3:12 p.m. OK Delphi TESTS 31 15 2764800 1700
22876780 Zeron A Dec. 11, 2016, 11:31 a.m. OK FPC TESTS 31 15 102400 1700
17418212 cookiedoth A April 21, 2016, 11:44 a.m. OK FPC TESTS 31 15 1638400 1700
17404879 vladKB1 A April 20, 2016, 3:55 p.m. OK FPC TESTS 31 15 1740800 1700
17423025 Marry_me_Marusja A April 21, 2016, 5:32 p.m. OK FPC TESTS 31 15 1843200 1700
17411760 MasterA A April 20, 2016, 9:38 p.m. OK FPC TESTS 31 15 1843200 1700
17409521 congthanh123 A April 20, 2016, 5:41 p.m. OK FPC TESTS 31 15 1843200 1700
17408801 StarScreamOwl A April 20, 2016, 5:05 p.m. OK FPC TESTS 31 15 1843200 1700
17404734 gestapo871 A April 20, 2016, 3:53 p.m. OK FPC TESTS 31 15 1843200 1700
17470494 Gray_58 A April 23, 2016, 1:45 p.m. OK FPC TESTS 31 15 1843200 1700
17467866 Shadowest A April 23, 2016, 9:57 a.m. OK FPC TESTS 31 15 1843200 1700
18616729 UcC109 A June 20, 2016, 3:37 p.m. OK GNU C TESTS 31 15 0 1700
21200482 soumik.datta A Oct. 5, 2016, 3:59 a.m. OK GNU C TESTS 31 15 0 1700
25779249 manchas2k4 A March 24, 2017, 5:14 p.m. OK GNU C TESTS 31 15 1843200 1700
25779230 manchas2k4 A March 24, 2017, 5:13 p.m. OK GNU C TESTS 31 15 1843200 1700
17433053 Absur_Siam A April 22, 2016, 10:41 a.m. OK GNU C TESTS 31 15 1843200 1700
25417736 EA117 A March 11, 2017, 8:15 p.m. OK GNU C TESTS 31 15 1843200 1700
35762154 vjudge2 A Feb. 27, 2018, 12:47 p.m. OK GNU C TESTS 31 15 1843200 1700
35762236 vjudge5 A Feb. 27, 2018, 12:49 p.m. OK GNU C TESTS 31 15 1945600 1700
17479845 double301 A April 24, 2016, 1:23 p.m. OK GNU C TESTS 31 15 1945600 1700
17705080 Omi12 A May 4, 2016, 7:04 a.m. OK GNU C TESTS 31 15 2048000 1700
27060898 vjudge1 A May 12, 2017, 7:06 p.m. OK GNU C++ TESTS 31 15 0 1700
30948892 kumaramit228 A Oct. 2, 2017, 4:59 p.m. OK GNU C++ TESTS 31 15 0 1700
27814287 Adham_Nasr A June 16, 2017, 12:48 a.m. OK GNU C++ TESTS 31 15 0 1700
26974564 vjudge2 A May 9, 2017, 1:22 p.m. OK GNU C++ TESTS 31 15 0 1700
26974557 shahrear002 A May 9, 2017, 1:22 p.m. OK GNU C++ TESTS 31 15 0 1700
26870888 vjudge2 A May 5, 2017, 2:40 a.m. OK GNU C++ TESTS 31 15 0 1700
26835479 hengyuanyuan A May 4, 2017, 1:22 p.m. OK GNU C++ TESTS 31 15 0 1700
26835109 vjudge5 A May 4, 2017, 1:05 p.m. OK GNU C++ TESTS 31 15 0 1700
26834982 vjudge1 A May 4, 2017, 1 p.m. OK GNU C++ TESTS 31 15 0 1700
26834727 vjudge2 A May 4, 2017, 12:49 p.m. OK GNU C++ TESTS 31 15 0 1700
18722044 zq13 A June 25, 2016, 3:34 p.m. OK GNU C11 TESTS 31 15 0 1700
35760810 vjudge3 A Feb. 27, 2018, 12:03 p.m. OK GNU C11 TESTS 31 15 1843200 1700
24434552 vjudge5 A Feb. 4, 2017, 2:59 p.m. OK GNU C11 TESTS 31 15 1843200 1700
35762250 vjudge4 A Feb. 27, 2018, 12:50 p.m. OK GNU C11 TESTS 31 15 1843200 1700
17429636 includeVivi A April 22, 2016, 4:29 a.m. OK GNU C11 TESTS 31 15 2048000 1700
27046930 Initiated A May 12, 2017, 4:58 a.m. OK GNU C++11 TESTS 31 15 0 1700
32064454 Eddax A Nov. 4, 2017, 10:05 p.m. OK GNU C++11 TESTS 31 15 0 1700
31937718 FieryPhoenix A Nov. 1, 2017, 4:06 a.m. OK GNU C++11 TESTS 31 15 0 1700
31937715 FieryPhoenix A Nov. 1, 2017, 4:06 a.m. OK GNU C++11 TESTS 31 15 0 1700
31893885 shengdebao A Oct. 30, 2017, 12:53 p.m. OK GNU C++11 TESTS 31 15 0 1700
29830416 Artemx A Aug. 27, 2017, 4:17 p.m. OK GNU C++11 TESTS 31 15 0 1700
27689166 shash42 A June 9, 2017, 12:42 p.m. OK GNU C++11 TESTS 31 15 0 1700
26961067 kakjapan31 A May 8, 2017, 4:55 p.m. OK GNU C++11 TESTS 31 15 0 1700
26924907 Ridowan_Ahmed A May 7, 2017, 1:59 p.m. OK GNU C++11 TESTS 31 15 0 1700
26828756 vjudge3 A May 4, 2017, 5:48 a.m. OK GNU C++11 TESTS 31 15 0 1700
54014914 ahmed65 A May 12, 2019, 5:59 a.m. OK GNU C++14 TESTS 31 15 0 1700
56724450 Rabee_Adel A July 8, 2019, 6:46 p.m. OK GNU C++14 TESTS 31 15 0 1700
39074161 Mouaz_Alkhodari A June 9, 2018, 4:31 p.m. OK GNU C++14 TESTS 31 15 0 1700
39001837 Ronic A June 6, 2018, 6:27 p.m. OK GNU C++14 TESTS 31 15 0 1700
31208052 TariqueNasrullah A Oct. 11, 2017, 6:28 a.m. OK GNU C++14 TESTS 31 15 0 1700
39184230 prodipdatta7 A June 12, 2018, 7:58 a.m. OK GNU C++14 TESTS 31 15 0 1700
46928284 vjudge2 A Dec. 12, 2018, 10:08 a.m. OK GNU C++14 TESTS 31 15 0 1700
47309770 andreumat A Dec. 20, 2018, 6:57 p.m. OK GNU C++14 TESTS 31 15 0 1700
51274307 AbdelrahmanSaeed A March 13, 2019, 7:54 p.m. OK GNU C++14 TESTS 31 15 0 1700
51352782 CPX A March 16, 2019, 12:29 a.m. OK GNU C++14 TESTS 31 15 0 1700
46928115 vjudge3 A Dec. 12, 2018, 10:02 a.m. OK GNU C++17 TESTS 31 15 0 1700
51587589 Moamen. A March 20, 2019, 5:05 p.m. OK GNU C++17 TESTS 31 15 0 1700
40017905 ayaNader A July 6, 2018, 4:17 a.m. OK GNU C++17 TESTS 31 15 0 1700
58240521 _Aaryan_ A Aug. 4, 2019, 12:17 a.m. OK GNU C++17 TESTS 31 15 0 1700
56724260 Kolo__ray7 A July 8, 2019, 6:39 p.m. OK GNU C++17 TESTS 31 15 0 1700
54173845 QFYNH A May 15, 2019, 12:50 p.m. OK GNU C++17 TESTS 31 15 0 1700
48469117 YuzuChan A Jan. 16, 2019, 6:56 p.m. OK GNU C++17 TESTS 31 15 204800 1700
47386404 Kart A Dec. 23, 2018, 5:19 a.m. OK GNU C++17 TESTS 31 15 307200 1700
68451981 _Asmaa A Jan. 9, 2020, 2:40 p.m. OK GNU C++17 TESTS 31 30 0 1700
69037375 praveenojha33 A Jan. 18, 2020, 9:21 a.m. OK GNU C++17 TESTS 31 30 0 1700
17401642 Martynas A April 20, 2016, 3:10 p.m. OK Go TESTS 31 15 5939200 1700
17699318 binhuq A May 3, 2016, 2:06 p.m. OK Go TESTS 31 31 5939200 1700
17560644 knguyen A April 29, 2016, 3:44 a.m. OK Go TESTS 31 31 5939200 1700
17694249 ramesh.baskaran A May 3, 2016, 2:04 a.m. OK Haskell TESTS 31 15 53452800 1700
66008289 davisrollman A Nov. 30, 2019, 12:14 a.m. OK Java 11 TESTS 31 171 0 1700
17600626 mIchanic A April 30, 2016, 9:04 p.m. OK Java 7 TESTS 31 108 38912000 1700
17403458 smalex69 A April 20, 2016, 3:35 p.m. OK Java 7 TESTS 31 108 39321600 1700
19587392 tonyhdez89 A Aug. 2, 2016, 9:07 p.m. OK Java 7 TESTS 31 109 0 1700
17407786 J1GS4W A April 20, 2016, 4:45 p.m. OK Java 7 TESTS 31 109 38912000 1700
17403169 nicolas.pe.92 A April 20, 2016, 3:31 p.m. OK Java 7 TESTS 31 109 39014400 1700
18350725 mkirsche A June 10, 2016, 1:54 a.m. OK Java 7 TESTS 31 109 39014400 1700
17996328 HarshGaglani A May 19, 2016, 7:07 p.m. OK Java 7 TESTS 31 109 39014400 1700
17590925 hritupon A April 30, 2016, 7:19 a.m. OK Java 7 TESTS 31 109 39014400 1700
17402782 Azat_Yusupov A April 20, 2016, 3:26 p.m. OK Java 7 TESTS 31 109 39116800 1700
17408689 apasni A April 20, 2016, 5:02 p.m. OK Java 7 TESTS 31 109 39424000 1700
59587089 jakejase2 A Aug. 27, 2019, 6:29 p.m. OK Java 8 TESTS 31 108 0 1700
48469663 nnnnnnnnnnnn A Jan. 16, 2019, 7:18 p.m. OK Java 8 TESTS 31 108 0 1700
26238801 OmarRadwan A April 9, 2017, 2:01 p.m. OK Java 8 TESTS 31 108 20172800 1700
17525554 jatemdefleet A April 26, 2016, 5:31 p.m. OK Java 8 TESTS 31 108 20582400 1700
49849204 manish_98 A Feb. 13, 2019, 1:46 a.m. OK Java 8 TESTS 31 109 0 1700
26304858 AhmedSoliman A April 11, 2017, 5:34 p.m. OK Java 8 TESTS 31 109 20172800 1700
23375274 kunalk A Dec. 28, 2016, 10:18 a.m. OK Java 8 TESTS 31 109 20275200 1700
17543478 I_Need_Alex_R_Coleman A April 27, 2016, 4:11 p.m. OK Java 8 TESTS 31 109 20275200 1700
17464967 ChrisWu A April 23, 2016, 4:31 a.m. OK Java 8 TESTS 31 109 20275200 1700
17404982 bohuss A April 20, 2016, 3:56 p.m. OK Java 8 TESTS 31 109 20377600 1700
17491401 zloylos A April 24, 2016, 5:37 p.m. OK JavaScript TESTS 31 30 5939200 1700
35204598 Ali_Fayed A Feb. 13, 2018, 3:51 p.m. OK Mono C# TESTS 31 46 9318400 1700
17550329 leonidvasilyev A April 28, 2016, 7:21 a.m. OK Mono C# TESTS 31 61 9216000 1700
22323229 og.kostya A Nov. 19, 2016, 10:07 a.m. OK MS C# TESTS 31 46 204800 1700
17467192 dzeranov1995 A April 23, 2016, 9:01 a.m. OK MS C# TESTS 31 46 9113600 1700
18290224 bati06 A June 7, 2016, 8:40 p.m. OK MS C# TESTS 31 46 9113600 1700
17410970 Mithun_ju A April 20, 2016, 7:52 p.m. OK MS C# TESTS 31 46 9216000 1700
22301406 Mem A Nov. 18, 2016, 7:08 a.m. OK MS C# TESTS 31 62 2560000 1700
17401443 azukun A April 20, 2016, 3:04 p.m. OK MS C# TESTS 31 62 9523200 1700
17561823 Arcey A April 29, 2016, 6:38 a.m. OK MS C# TESTS 31 77 9113600 1700
17833442 sundown A May 10, 2016, 2:56 p.m. OK MS C# TESTS 31 77 9625600 1700
17603307 DigitalArtistKz A May 1, 2016, 5:49 a.m. OK MS C# TESTS 31 77 11468800 1700
17415174 fr0st A April 21, 2016, 6:31 a.m. OK MS C# TESTS 31 77 11571200 1700
20391831 sophirothwither A Sept. 5, 2016, 1:58 a.m. OK MS C++ TESTS 31 15 0 1700
21776603 Isaac_wjl A Oct. 25, 2016, 5:01 p.m. OK MS C++ TESTS 31 15 0 1700
19228482 ibrahim_habib A July 19, 2016, 9:22 a.m. OK MS C++ TESTS 31 15 0 1700
20362953 Liangfj A Sept. 3, 2016, 1:51 p.m. OK MS C++ TESTS 31 15 0 1700
24538525 CPX99 A Feb. 9, 2017, 12:23 a.m. OK MS C++ TESTS 31 15 2048000 1700
34882368 ys1468362286 A Feb. 3, 2018, 4:46 a.m. OK MS C++ TESTS 31 15 2048000 1700
28675078 MrDecomposition LaoShi A July 18, 2017, 5:45 p.m. OK MS C++ TESTS 31 15 2048000 1700
28654984 vjudge4 A July 18, 2017, 4:35 a.m. OK MS C++ TESTS 31 15 2048000 1700
24425754 jslijin A Feb. 4, 2017, 6:04 a.m. OK MS C++ TESTS 31 15 2048000 1700
17760402 abc651279230 A May 6, 2016, 11:54 a.m. OK MS C++ TESTS 31 15 2048000 1700
59923348 bahaaEldeen A Sept. 3, 2019, 1:36 a.m. OK MS C++ 2017 TESTS 31 31 0 1700
59919974 ehabmashraf A Sept. 2, 2019, 9:46 p.m. OK Node.js TESTS 31 155 204800 1700
17460142 devchrisd A April 22, 2016, 4:27 p.m. OK PHP TESTS 31 31 4710400 1700
17460041 devchrisd A April 22, 2016, 4:19 p.m. OK PHP TESTS 31 46 4710400 1700
17423244 mayakin A April 21, 2016, 5:52 p.m. OK PHP TESTS 31 62 5120000 1700
17475764 Eeyore A April 24, 2016, 3:03 a.m. OK PyPy 2 TESTS 31 77 22630400 1700
17409376 juniorcompressor A April 20, 2016, 5:33 p.m. OK PyPy 2 TESTS 31 108 22630400 1700
17414946 pho A April 21, 2016, 6:01 a.m. OK PyPy 2 TESTS 31 109 22630400 1700
24415614 ragingbull A Feb. 3, 2017, 4:42 p.m. OK PyPy 2 TESTS 31 124 21913600 1700
17401983 m7mdbadawy A April 20, 2016, 3:16 p.m. OK PyPy 2 TESTS 31 140 22630400 1700
17402958 tushutripathi A April 20, 2016, 3:29 p.m. OK PyPy 2 TESTS 31 218 36044800 1700
17421396 maxnk A April 21, 2016, 3:07 p.m. OK PyPy 3 TESTS 31 109 23244800 1700
26715592 Naoki_M A April 28, 2017, 8:35 a.m. OK PyPy 3 TESTS 31 139 23449600 1700
56054362 scambret A June 25, 2019, 9:41 p.m. OK PyPy 3 TESTS 31 140 1228800 1700
17403273 Ferume A April 20, 2016, 3:33 p.m. OK PyPy 3 TESTS 31 186 23244800 1700
17403357 ssmiler A April 20, 2016, 3:34 p.m. OK PyPy 3 TESTS 31 311 40038400 1700
27791012 senbihan A June 15, 2017, 10:04 a.m. OK Python 2 TESTS 31 46 0 1700
20189137 alwaysR9 A Aug. 27, 2016, 6:37 a.m. OK Python 2 TESTS 31 46 4608000 1700
17866195 artyom.fedosov A May 11, 2016, 9:06 p.m. OK Python 2 TESTS 31 46 4710400 1700
17550486 Atef A April 28, 2016, 7:35 a.m. OK Python 2 TESTS 31 46 4710400 1700
17472759 seeprybyrun A April 23, 2016, 5:42 p.m. OK Python 2 TESTS 31 46 4710400 1700
17428658 viralm A April 21, 2016, 11:26 p.m. OK Python 2 TESTS 31 46 4710400 1700
18374043 llllllll A June 11, 2016, 12:02 p.m. OK Python 2 TESTS 31 46 4812800 1700
17503003 pangxiaobi A April 25, 2016, 5:10 a.m. OK Python 2 TESTS 31 61 4608000 1700
17556984 osho1278 A April 28, 2016, 6:21 p.m. OK Python 2 TESTS 31 61 4710400 1700
17508776 andreamaf A April 25, 2016, 12:35 p.m. OK Python 2 TESTS 31 61 4710400 1700
18414974 Racsoth A June 13, 2016, 2:47 p.m. OK Python 3 TESTS 31 61 5120000 1700
31790543 yugle7 A Oct. 27, 2017, 9:48 a.m. OK Python 3 TESTS 31 62 0 1700
31790427 yugle7 A Oct. 27, 2017, 9:43 a.m. OK Python 3 TESTS 31 62 0 1700
21187765 orailly A Oct. 4, 2016, 1:32 p.m. OK Python 3 TESTS 31 62 0 1700
25278612 mola.mola A March 6, 2017, 4:27 a.m. OK Python 3 TESTS 31 62 4608000 1700
17778008 nimenity A May 7, 2016, 12:19 p.m. OK Python 3 TESTS 31 62 4608000 1700
17472837 Givemetips A April 23, 2016, 5:55 p.m. OK Python 3 TESTS 31 62 4608000 1700
18347900 pylol A June 9, 2016, 8:12 p.m. OK Python 3 TESTS 31 62 5120000 1700
18257421 alberthkcheng A June 5, 2016, 1:26 p.m. OK Python 3 TESTS 31 62 5120000 1700
17925796 nanodecay A May 16, 2016, 12:01 a.m. OK Python 3 TESTS 31 62 5120000 1700
35889579 ______M______ A March 3, 2018, 2:42 p.m. OK Ruby TESTS 31 62 6348800 1700
17508725 cielavenir A April 25, 2016, 12:32 p.m. OK Ruby TESTS 31 62 6451200 1700
18442263 MoOfMo A June 14, 2016, 3:47 a.m. OK Ruby TESTS 31 62 6553600 1700
17532621 Aybek.kktl A April 27, 2016, 8:47 a.m. OK Ruby TESTS 31 77 6451200 1700
17521936 _ShadowSong A April 26, 2016, 1:11 p.m. OK Ruby TESTS 31 108 6451200 1700
17506424 reldan A April 25, 2016, 9:50 a.m. OK Scala TESTS 31 280 40038400 1700

remove filters

Back to search problems