Friday the 13th, Programmers Day

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
345 Friday the 13th, Programmers Day FINISHED False 7200 397318823 Sept. 13, 2013, 3:40 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 55 ) E Black Cat Rush PROGRAMMING *special 2800

Today you go out of your house and immediately notice that something is weird. Around your door there is a swarm of black cats — all tense paws and twitching tails. As you do your first step, they all dart off and start running towards you. It looks like they want to thwart you! You are moving in a straight line from point (0, 0) to point ( a , 0) with velocity v . There are n black cats around you who want to cross your paths. A cat can move in any direction with velocity at most u . A cat assumes it has crossed your path if it managed to get to at least one point of your path earlier or at the same time as you got there. You are given four integers: a , v , u , n , as well as cats' coordinates ( x i , y i ) . What is the greatest number of cats who manage to cross your path? The first line contains four integers a , v , u , n (1 ≤ a ≤ 10000; 1 ≤ v , u ≤ 100; 1 ≤ n ≤ 1000) . Each of the next n lines contains two integers x i , y i ( - 100 ≤ x i , y i ≤ 100) — location of the i -th cat. It's guaranteed that all cats are located in distinct points. Output a single integer — what is the greatest number of cats who manage to cross your path?

Tutorials

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
16349243 Yazan_Eagle E Feb. 26, 2016, 3:13 p.m. OK Ada TESTS 30 30 0 2800
14875625 alishaterian E Dec. 19, 2015, 12:42 p.m. OK Ada TESTS 30 30 0 2800
14296867 Mr.Amir E Nov. 16, 2015, 11:43 a.m. OK Ada TESTS 30 30 0 2800
14226951 giorgu.jaiani E Nov. 13, 2015, 1:10 p.m. OK Ada TESTS 30 30 0 2800
14042755 130705009 E Nov. 3, 2015, 2:08 p.m. OK Ada TESTS 30 30 0 2800
13807150 nyamaga E Oct. 23, 2015, 11:19 a.m. OK Ada TESTS 30 30 0 2800
11262756 CodeItLikeAidos E May 25, 2015, 9:43 a.m. OK Ada TESTS 30 30 0 2800
8978026 Behruz_Ashurov E Dec. 4, 2014, 7:19 a.m. OK Ada TESTS 30 30 0 2800
5475282 Doter_Number_One E Dec. 19, 2013, 1:15 p.m. OK Ada TESTS 30 30 0 2800
5454279 Tohka E Dec. 17, 2013, 8:55 a.m. OK Ada TESTS 30 30 0 2800

remove filters

Back to search problems