Codeforces Round 176 (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
286 Codeforces Round 176 (Div. 1) FINISHED False 7200 367797599 March 23, 2013, 8 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 379 ) D Tourists PROGRAMMING data structures sortings 2500

B"A double tourist path, located at a park in Ultima Thule, is working by the following principle: The Ultima Thule government wants to learn this for each pair of tourists that walk simultaneously: for how long (in seconds) will they not see each other? Two tourists don't see each other if the segment that connects their positions on the plane intersects at least one wall. Two segments intersect if they share at least one point. We assume that the segments' ends belong to the segments. Help the government count the required time. Note that the walls can intersect (in any way) or coincide. The first line contains two space-separated integers n and m (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105) -- the number of pairs of tourists and the number of built walls. The next m lines contain three space-separated integers li, ri and ti each (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89li xe2 x80 x89< xe2 x80 x89ri xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109, 0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ti xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) -- the wall ends and the time it appeared. The last line contains n distinct space-separated strictly increasing integers q1, xe2 x80 x89q2, xe2 x80 x89..., xe2 x80 x89qn (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89qi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) -- the points of time when pairs of tourists walk. All points of time are given in seconds. For each pair of tourists print on a single line a single integer -- the time in seconds when the two tourists from the corresponding pair won't see each other. Print the numbers in the order in which the they go in the input."...

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
3395844 con_nha_ngheo D March 23, 2013, 4:03 p.m. OK FPC TESTS 76 296 8704000 2500
25096305 Claris D Feb. 28, 2017, 8:56 a.m. OK GNU C++ TESTS 76 124 10956800 2500
15142691 HappyNewYearMike D Dec. 31, 2015, 10:43 p.m. OK GNU C++ TESTS 76 124 13619200 2500
42010588 Scut82 D Aug. 23, 2018, 11:53 p.m. OK GNU C++ TESTS 76 139 12083200 2500
40990077 ReaLNero1 D July 30, 2018, 11:34 p.m. OK GNU C++ TESTS 76 140 8806400 2500
29101236 vjudge5 D Aug. 1, 2017, 1:13 p.m. OK GNU C++ TESTS 76 140 12185600 2500
10511015 elliot D March 29, 2015, 5:08 a.m. OK GNU C++ TESTS 76 155 10342400 2500
42010613 Scut82 D Aug. 23, 2018, 11:55 p.m. OK GNU C++ TESTS 76 155 11980800 2500
15296276 iwtwiioi D Jan. 11, 2016, 3:59 p.m. OK GNU C++ TESTS 76 155 14950400 2500
39423248 none44353 D June 19, 2018, 11:09 p.m. OK GNU C++ TESTS 76 171 11468800 2500
11279659 Athee D May 26, 2015, 2:10 p.m. OK GNU C++ TESTS 76 171 12083200 2500
3480833 FineSeaSaltCrystals D April 6, 2013, 6:51 p.m. OK GNU C++0x TESTS 76 281 7168000 2500
3480735 FineSeaSaltCrystals D April 6, 2013, 6:05 p.m. OK GNU C++0x TESTS 76 296 8908800 2500
8083097 zshi D Oct. 5, 2014, 7:42 a.m. OK GNU C++0x TESTS 76 312 21606400 2500
5825012 mayukuner D Jan. 28, 2014, 11:40 a.m. OK GNU C++0x TESTS 76 342 9011200 2500
3392645 hex539 D March 23, 2013, 10:12 a.m. OK GNU C++0x TESTS 76 406 18636800 2500
9951969 josdas D Feb. 21, 2015, 7:27 p.m. OK GNU C++0x TESTS 76 467 30515200 2500
9951992 josdas D Feb. 21, 2015, 7:29 p.m. OK GNU C++0x TESTS 76 467 30617600 2500
3411972 zjut_DD D March 27, 2013, 1:10 p.m. OK GNU C++0x TESTS 76 468 15974400 2500
8171235 equation314 D Oct. 11, 2014, 5:31 a.m. OK GNU C++0x TESTS 76 498 27238400 2500
4199773 mruxim D July 29, 2013, 1:33 p.m. OK GNU C++0x TESTS 76 530 12390400 2500
55063670 SoiMae D June 4, 2019, 1:46 a.m. OK GNU C++11 TESTS 76 124 11673600 2500
53891755 time_interspace D May 9, 2019, 1:08 a.m. OK GNU C++11 TESTS 76 139 13312000 2500
31329798 xy20130630 D Oct. 15, 2017, 5:59 a.m. OK GNU C++11 TESTS 76 140 48230400 2500
29095237 zbh2047 D Aug. 1, 2017, 9:49 a.m. OK GNU C++11 TESTS 76 155 14131200 2500
55184840 SoiMae D June 6, 2019, 2:40 a.m. OK GNU C++11 TESTS 76 156 11161600 2500
29095262 vjudge3 D Aug. 1, 2017, 9:50 a.m. OK GNU C++11 TESTS 76 156 14131200 2500
54404400 luogu_bot4 D May 20, 2019, 4:50 a.m. OK GNU C++11 TESTS 76 156 14745600 2500
33914032 XHRlyb_2001 D Jan. 5, 2018, 2:04 a.m. OK GNU C++11 TESTS 76 156 16896000 2500
57821323 py_ultron D July 26, 2019, 11:32 p.m. OK GNU C++11 TESTS 76 171 11776000 2500
53864576 Dilute D May 8, 2019, 2:04 a.m. OK GNU C++11 TESTS 76 171 14540800 2500
29100752 cookyy D Aug. 1, 2017, 12:59 p.m. OK GNU C++14 TESTS 76 186 10854400 2500
37538456 Andrei1998 D April 22, 2018, 6:01 p.m. OK GNU C++14 TESTS 76 202 13107200 2500
31717009 bangx3 D Oct. 25, 2017, 4:07 p.m. OK GNU C++14 TESTS 76 202 30310400 2500
64147347 MinecraftFuns D Nov. 3, 2019, 10:20 a.m. OK GNU C++14 TESTS 76 233 18329600 2500
36707351 ShakuganSky D March 29, 2018, 1:45 a.m. OK GNU C++14 TESTS 76 249 10752000 2500
36707320 ShakuganSky D March 29, 2018, 1:41 a.m. OK GNU C++14 TESTS 76 249 10752000 2500
36706821 ShakuganSky D March 29, 2018, 12:43 a.m. OK GNU C++14 TESTS 76 249 11161600 2500
23661956 Ali.Pi D Jan. 9, 2017, 7:45 a.m. OK GNU C++14 TESTS 76 249 11366400 2500
36706779 ShakuganSky D March 29, 2018, 12:38 a.m. OK GNU C++14 TESTS 76 265 12697600 2500
36662574 thchuan D March 27, 2018, 8:56 a.m. OK GNU C++14 TESTS 76 280 24678400 2500
52298200 ruo D April 4, 2019, 7:27 a.m. OK GNU C++17 TESTS 76 187 13004800 2500
56847527 vjudge5 D July 11, 2019, 2:12 p.m. OK GNU C++17 TESTS 76 202 11980800 2500
38270062 rushcheyo D May 15, 2018, 2:15 p.m. OK GNU C++17 TESTS 76 202 14745600 2500
42990526 majk D Sept. 17, 2018, 10 a.m. OK GNU C++17 TESTS 76 326 16588800 2500
45887204 aviroop123 D Nov. 17, 2018, 4:39 p.m. OK GNU C++17 TESTS 76 327 32256000 2500
57135156 hjk1030 D July 16, 2019, 8:37 a.m. OK GNU C++17 TESTS 76 358 166502400 2500
3392901 uwi D March 23, 2013, 10:21 a.m. OK Java 6 TESTS 76 593 13312000 2500
11338113 Amr_Hassan D May 28, 2015, 7:30 p.m. OK Java 7 TESTS 76 451 14540800 2500
3389323 niyaznigmatul D March 23, 2013, 9:08 a.m. OK Java 7 TESTS 76 686 307200 2500
3395450 Aksenov239 D March 23, 2013, 2:58 p.m. OK Java 7 TESTS 76 811 15052800 2500
3389024 Egor D March 23, 2013, 9:02 a.m. OK Java 7 TESTS 76 937 31232000 2500
3424948 1Shreesh D March 31, 2013, 12:44 a.m. OK Java 7 TESTS 76 984 53760000 2500
3414267 FattyPenguin D March 28, 2013, 6:25 a.m. OK Java 7 TESTS 76 1000 53760000 2500
3420297 craybeats D March 29, 2013, 6:09 p.m. OK MS C++ TESTS 76 250 9011200 2500
3415955 hgame D March 28, 2013, 2:13 p.m. OK MS C++ TESTS 76 265 9011200 2500
4021952 int128 D July 4, 2013, 4:13 p.m. OK MS C++ TESTS 76 281 10547200 2500
3397545 lost3030 D March 24, 2013, 1:19 a.m. OK MS C++ TESTS 76 328 32153600 2500
3397451 Monyura D March 23, 2013, 11:53 p.m. OK MS C++ TESTS 76 359 7987200 2500
3389279 al13n D March 23, 2013, 9:07 a.m. OK MS C++ TESTS 76 359 32153600 2500
3392916 RAD D March 23, 2013, 10:22 a.m. OK MS C++ TESTS 76 437 35225600 2500
31705664 bangx3 D Oct. 25, 2017, 10:38 a.m. OK MS C++ TESTS 76 514 97382400 2500
3430670 NALP D April 1, 2013, 12:05 p.m. OK MS C++ TESTS 76 593 30822400 2500
6609195 blueseen D May 13, 2014, 11 a.m. OK MS C++ TESTS 76 748 139571200 2500

remove filters

Back to search problems