Codeforces Beta Round 44 (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
47 Codeforces Beta Round 44 (Div. 2) FINISHED False 7200 484581580 Dec. 7, 2010, 4 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 438 ) E Cannon PROGRAMMING data structures geometry sortings 2100

Bertown is under siege! The attackers have blocked all the ways out and their cannon is bombarding the city. Fortunately, Berland intelligence managed to intercept the enemies' shooting plan. Let's introduce the Cartesian system of coordinates, the origin of which coincides with the cannon's position, the Ox axis is directed rightwards in the city's direction, the Oy axis is directed upwards (to the sky). The cannon will make n more shots. The cannon balls' initial speeds are the same in all the shots and are equal to V , so that every shot is characterized by only one number alpha i which represents the angle at which the cannon fires. Due to the cannon's technical peculiarities this angle does not exceed 45 angles ( π / 4 ). We disregard the cannon sizes and consider the firing made from the point (0, 0) . The balls fly according to the known physical laws of a body thrown towards the horizon at an angle: Think of the acceleration of gravity g as equal to 9.8 . Bertown defends m walls. The i -th wall is represented as a vertical segment ( x i , 0) - ( x i , y i ) . When a ball hits a wall, it gets stuck in it and doesn't fly on. If a ball doesn't hit any wall it falls on the ground ( y = 0 ) and stops. If the ball exactly hits the point ( x i , y i ) , it is considered stuck. Your task is to find for each ball the coordinates of the point where it will be located in the end. The first line contains integers n and V ( 1 ≤ n ≤ 10 4 , 1 ≤ V ≤ 1000 ) which represent the number of shots and the initial speed of every ball. The second line contains n space-separated real numbers alpha i ( 0 < alpha i < π / 4 ) which represent the angles in radians at which the cannon will fire. The third line contains integer m ( 1 ≤ m ≤ 10 5 ) which represents the number of walls. Then follow m lines, each containing two real numbers x i and y i ( 1 ≤ x i ≤ 1000, 0 ≤ y i ≤ 1000 ) which represent the wall’s coordinates. All the real numbers have no more than 4 decimal digits.

Tutorials

Codeforces Beta Round #44: tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
215636 Algorithm E Dec. 10, 2010, 12:21 a.m. OK Delphi TESTS 70 110 2764800 2100
256400 agul E Jan. 21, 2011, 3:42 p.m. OK Delphi TESTS 70 110 2867200 2100
912045 pheonix E Dec. 7, 2010, 5:48 p.m. OK Delphi TESTS 70 110 5324800 2100
242876 valikluks1995 E Jan. 9, 2011, 11:37 a.m. OK Delphi TESTS 70 170 3276800 2100
215499 flashmt E Dec. 8, 2010, 5:59 p.m. OK FPC TESTS 70 110 2662400 2100
214767 flashmt E Dec. 7, 2010, 5:38 p.m. OK FPC TESTS 70 110 2662400 2100
2516704 luogan E Nov. 7, 2012, 12:39 a.m. OK FPC TESTS 70 156 1843200 2100
3999802 zscnash E July 1, 2013, 1:36 p.m. OK FPC TESTS 70 265 13619200 2100
40993354 ReaLNero1 E July 31, 2018, 1:54 a.m. OK FPC TESTS 70 280 1843200 2100
1689991 blackapple E May 16, 2012, 8:09 a.m. OK FPC TESTS 70 300 21299200 2100
1124187 zanoes E Jan. 28, 2012, 4:32 p.m. OK FPC TESTS 70 410 5017600 2100
2824600 Leo_Yu E Dec. 25, 2012, 6:26 a.m. OK GNU C++ TESTS 70 78 1945600 2100
22008820 Jin_Haonan E Nov. 3, 2016, 8:37 a.m. OK GNU C++ TESTS 70 124 1843200 2100
2797465 Chen_ChaoRui E Dec. 20, 2012, 9:28 a.m. OK GNU C++ TESTS 70 203 4812800 2100
2860261 YuukaKazami E Dec. 31, 2012, 7:14 a.m. OK GNU C++ TESTS 70 218 1843200 2100
2875390 shyoshyohw1 E Jan. 5, 2013, 3 p.m. OK GNU C++ TESTS 70 218 3584000 2100
3850375 numitus E June 9, 2013, 11:12 a.m. OK GNU C++ TESTS 70 218 4403200 2100
2923806 qquartz E Jan. 14, 2013, 11:41 a.m. OK GNU C++ TESTS 70 218 4812800 2100
3428011 TianmingZhou E March 31, 2013, 3:28 p.m. OK GNU C++ TESTS 70 234 2252800 2100
3518210 ufo_go E April 12, 2013, 1:21 p.m. OK GNU C++ TESTS 70 234 3788800 2100
2860737 BenZ E Dec. 31, 2012, 10:44 a.m. OK GNU C++ TESTS 70 234 3993600 2100
2792788 llj_bash E Dec. 19, 2012, 2:20 a.m. OK GNU C++0x TESTS 70 203 1945600 2100
2790422 apia E Dec. 18, 2012, 10:52 a.m. OK GNU C++0x TESTS 70 203 3788800 2100
4976852 zshi E Nov. 3, 2013, 7:38 a.m. OK GNU C++0x TESTS 70 280 8806400 2100
2879564 Archon.JK E Jan. 7, 2013, 2:13 a.m. OK GNU C++0x TESTS 70 343 9523200 2100
2946724 vjudge4 E Jan. 17, 2013, 2 a.m. OK GNU C++0x TESTS 70 2484 2969600 2100
44427650 Captain_Paul E Oct. 17, 2018, 5:42 a.m. OK GNU C++11 TESTS 70 248 1740800 2100
44680866 When E Oct. 22, 2018, 6:19 a.m. OK GNU C++11 TESTS 70 248 2457600 2100
57907088 lopare E July 28, 2019, 6:05 p.m. OK GNU C++11 TESTS 70 248 3686400 2100
57728278 yltx E July 25, 2019, 7:50 a.m. OK GNU C++11 TESTS 70 248 3686400 2100
44443562 miaokehao E Oct. 17, 2018, 1:04 p.m. OK GNU C++11 TESTS 70 248 4812800 2100
58493705 gubeiqg E Aug. 9, 2019, 11:12 a.m. OK GNU C++11 TESTS 70 248 9625600 2100
55590229 luogu_bot4 E June 15, 2019, 11:54 a.m. OK GNU C++11 TESTS 70 278 1740800 2100
41235117 sjc_fan E Aug. 5, 2018, 6:47 a.m. OK GNU C++11 TESTS 70 280 1740800 2100
50240480 fsh317574518 E Feb. 20, 2019, 12:43 p.m. OK GNU C++11 TESTS 70 280 1945600 2100
20994523 guga E Sept. 29, 2016, 2:06 p.m. OK GNU C++11 TESTS 70 280 1945600 2100
58793416 guanhuai04 E Aug. 14, 2019, 3:39 a.m. OK GNU C++14 TESTS 70 278 1945600 2100
51891043 lajiyuan E March 27, 2019, 9:08 a.m. OK GNU C++14 TESTS 70 280 5632000 2100
63904095 MinecraftFuns E Oct. 31, 2019, 5:58 a.m. OK GNU C++14 TESTS 70 498 1843200 2100
36238271 Emma194 E March 13, 2018, 3:40 a.m. OK GNU C++14 TESTS 70 810 16998400 2100
61398645 PavelChadnov E Sept. 28, 2019, 4 a.m. OK GNU C++14 TESTS 70 1808 9523200 2100
61398641 PavelChadnov E Sept. 28, 2019, 4 a.m. OK GNU C++14 TESTS 70 1872 9523200 2100
39682660 satvik007 E June 26, 2018, 5:42 p.m. OK GNU C++14 TESTS 70 1932 3481600 2100
51296821 _Solenya_ E March 14, 2019, 12:45 p.m. OK GNU C++14 TESTS 70 1932 3891200 2100
64299528 rfpermen E Nov. 5, 2019, 9:35 a.m. OK GNU C++14 TESTS 70 1996 3584000 2100
64299427 rfpermen E Nov. 5, 2019, 9:33 a.m. OK GNU C++14 TESTS 70 2026 20172800 2100
53661519 kenimo E May 2, 2019, 8 a.m. OK GNU C++17 TESTS 70 498 1945600 2100
51290716 tnakao E March 14, 2019, 10:03 a.m. OK GNU C++17 TESTS 70 528 3276800 2100
59709759 segmentfault E Aug. 30, 2019, 2:11 p.m. OK GNU C++17 TESTS 70 530 4198400 2100
38000485 ruo E May 7, 2018, 3:35 p.m. OK GNU C++17 TESTS 70 560 5120000 2100
42277561 xuanquang1999 E Aug. 30, 2018, 12:28 p.m. OK GNU C++17 TESTS 70 592 2150400 2100
37991853 ruo E May 7, 2018, 10:50 a.m. OK GNU C++17 TESTS 70 1870 5324800 2100
40125341 verngutz E July 9, 2018, 3:58 p.m. OK GNU C++17 TESTS 70 2090 4505600 2100
2606323 watashi E Nov. 20, 2012, 3:01 p.m. OK Haskell TESTS 70 875 38604800 2100
216001 slycelote E Dec. 22, 2010, 12:22 a.m. OK Haskell TESTS 70 1090 64614400 2100
216002 slycelote E Dec. 22, 2010, 12:43 a.m. OK Haskell TESTS 70 1220 64614400 2100
216010 slycelote E Dec. 22, 2010, 7:31 p.m. OK Haskell TESTS 70 1230 65638400 2100
2003267 Azat_Yusupov E Aug. 13, 2012, 5:10 a.m. OK Java 6 TESTS 70 470 43724800 2100
214579 Egor E Dec. 7, 2010, 5:14 p.m. OK Java 6 TESTS 70 530 43622400 2100
215148 uwi E Dec. 7, 2010, 8:14 p.m. OK Java 6 TESTS 70 2280 43724800 2100
215019 uwi E Dec. 7, 2010, 6:46 p.m. OK Java 6 TESTS 70 2300 43724800 2100
215141 uwi E Dec. 7, 2010, 8:09 p.m. OK Java 6 TESTS 70 2390 43724800 2100
5358934 atubo E Dec. 6, 2013, 7:50 a.m. OK Java 6 TESTS 70 2652 819200 2100
2167071 Bambam E Sept. 13, 2012, 5:43 p.m. OK Java 7 TESTS 70 453 46182400 2100
18498925 2016 E June 15, 2016, 1:56 p.m. OK Java 8 TESTS 70 654 21811200 2100
47599577 moss3s E Dec. 27, 2018, 8:55 p.m. OK Kotlin TESTS 70 872 19148800 2100
47599522 moss3s E Dec. 27, 2018, 8:53 p.m. OK Kotlin TESTS 70 1090 19148800 2100
215254 fujiyama E Dec. 8, 2010, 2:20 a.m. OK Mono C# TESTS 70 670 15872000 2100
241897 moondy E Jan. 8, 2011, 9:03 a.m. OK MS C++ TESTS 70 250 5427200 2100
215138 ilsaf13 E Dec. 7, 2010, 8:08 p.m. OK MS C++ TESTS 70 270 3276800 2100
215735 meret E Dec. 10, 2010, 7:51 p.m. OK MS C++ TESTS 70 280 3276800 2100
215769 Lesya E Dec. 11, 2010, 3:51 p.m. OK MS C++ TESTS 70 280 3276800 2100
215233 zjf.sjtu E Dec. 8, 2010, 12:58 a.m. OK MS C++ TESTS 70 300 6144000 2100
215450 KTY E Dec. 8, 2010, 2:38 p.m. OK MS C++ TESTS 70 300 6144000 2100
1787009 vjudge1 E June 12, 2012, 8:36 a.m. OK MS C++ TESTS 70 310 3379200 2100
247719 starvae E Jan. 12, 2011, 1:43 p.m. OK MS C++ TESTS 70 330 6246400 2100
214528 ballon E Dec. 7, 2010, 5:09 p.m. OK MS C++ TESTS 70 360 3276800 2100
214562 Deamon E Dec. 7, 2010, 5:12 p.m. OK MS C++ TESTS 70 380 3379200 2100

remove filters

Back to search problems