Codeforces Round 280 (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
492 Codeforces Round 280 (Div. 2) FINISHED False 7200 320074223 Dec. 1, 2014, 4:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3190 ) D Vanya and Computer Game PROGRAMMING binary search implementation math sortings 1800

B'Vanya and his friend Vova play a computer game where they need to destroy n monsters to pass a level. Vanya 's character performs attack with frequency x hits per second and Vova 's character performs attack with frequency y hits per second. Each character spends fixed time to raise a weapon and then he hits (the time to raise the weapon is 1 xe2 x80 x89/ xe2 x80 x89x seconds for the first character and 1 xe2 x80 x89/ xe2 x80 x89y seconds for the second one). The i-th monster dies after he receives ai hits. Vanya and Vova wonder who makes the last hit on each monster. If Vanya and Vova make the last hit at the same time, we assume that both of them have made the last hit. The first line contains three integers n,x,y (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89x, xe2 x80 x89y xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89106) -- the number of monsters, the frequency of Vanya 's and Vova 's attack, correspondingly. Next n lines contain integers ai (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) -- the number of hits needed do destroy the i-th monster. Print n lines. In the i-th line print word "Vanya", if the last hit on the i-th monster was performed by Vanya, "Vova", if Vova performed the last hit, or "Both", if both boys performed it at the same time. In the first sample Vanya makes the first hit at time 1 xe2 x80 x89/ xe2 x80 x893, Vova makes the second hit at time 1 xe2 x80 x89/ xe2 x80 x892, Vanya makes the third hit at time 2 xe2 x80 x89/ xe2 x80 x893, and both boys make the fourth and fifth hit simultaneously at the time 1. In the second sample Vanya and Vova make the first and second hit simultaneously at time 1.'...

Tutorials

Разбор задач

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
45907142 vjudge3 D Nov. 18, 2018, 9:02 a.m. OK FPC TESTS 38 342 7987200 1800
45953299 luogu_bot5 D Nov. 19, 2018, 7:45 a.m. OK FPC TESTS 38 343 7987200 1800
45956046 vjudge2 D Nov. 19, 2018, 9:23 a.m. OK FPC TESTS 38 343 20070400 1800
45908526 zhouxing D Nov. 18, 2018, 9:50 a.m. OK FPC TESTS 38 358 1228800 1800
45908560 vjudge2 D Nov. 18, 2018, 9:51 a.m. OK FPC TESTS 38 374 1228800 1800
51213431 chaorenhaha D March 12, 2019, 9:11 a.m. OK FPC TESTS 38 451 0 1800
36499159 bojverdict2 D March 22, 2018, 11:20 a.m. OK GNU C++ TESTS 38 61 15360000 1800
36499848 bojverdict1 D March 22, 2018, 11:39 a.m. OK GNU C++ TESTS 38 61 27545600 1800
37252429 vjudge4 D April 12, 2018, 1:59 p.m. OK GNU C++ TESTS 38 62 11571200 1800
36499174 bojverdict2 D March 22, 2018, 11:20 a.m. OK GNU C++ TESTS 38 62 15360000 1800
36500745 bojverdict2 D March 22, 2018, 12:04 p.m. OK GNU C++ TESTS 38 62 43417600 1800
36500913 bojverdict1 D March 22, 2018, 12:08 p.m. OK GNU C++ TESTS 38 77 11366400 1800
37253177 vjudge4 D April 12, 2018, 2:22 p.m. OK GNU C++ TESTS 38 77 25804800 1800
37253148 vjudge4 D April 12, 2018, 2:21 p.m. OK GNU C++ TESTS 38 77 25804800 1800
37253138 vjudge3 D April 12, 2018, 2:21 p.m. OK GNU C++ TESTS 38 77 25804800 1800
36498464 bojverdict2 D March 22, 2018, 10:59 a.m. OK GNU C++ TESTS 38 78 19558400 1800
51268788 vjudge4 D March 13, 2019, 4:56 p.m. OK GNU C11 TESTS 38 358 11980800 1800
51264391 vjudge5 D March 13, 2019, 2:50 p.m. OK GNU C11 TESTS 38 373 0 1800
51268748 Samiul_islam_abir D March 13, 2019, 4:55 p.m. OK GNU C11 TESTS 38 373 11980800 1800
57815278 rainboy D July 26, 2019, 7:20 p.m. OK GNU C11 TESTS 38 390 0 1800
54590839 ShafinKhadem D May 25, 2019, 8:37 a.m. OK GNU C++11 TESTS 38 46 2457600 1800
45905408 haoyun1 D Nov. 18, 2018, 8:07 a.m. OK GNU C++11 TESTS 38 46 7884800 1800
45907987 luogu_bot3 D Nov. 18, 2018, 9:31 a.m. OK GNU C++11 TESTS 38 46 7884800 1800
57887567 lopare D July 28, 2019, 10:35 a.m. OK GNU C++11 TESTS 38 46 7884800 1800
57784204 bojverdict1 D July 26, 2019, 7:08 a.m. OK GNU C++11 TESTS 38 46 7987200 1800
40987587 ReaLNero1 D July 30, 2018, 9:21 p.m. OK GNU C++11 TESTS 38 46 7987200 1800
56282535 alexOLO D June 29, 2019, 5:37 p.m. OK GNU C++11 TESTS 38 46 7987200 1800
57938886 bojverdict2 D July 29, 2019, 11:51 a.m. OK GNU C++11 TESTS 38 46 7987200 1800
57796535 bojverdict2 D July 26, 2019, 11:37 a.m. OK GNU C++11 TESTS 38 46 8396800 1800
58217217 yhdd D Aug. 3, 2019, 11:13 a.m. OK GNU C++11 TESTS 38 46 11980800 1800
38639946 GLAYS D May 26, 2018, 4:41 p.m. OK GNU C++14 TESTS 38 62 0 1800
54517134 vjudge3 D May 23, 2019, 10:30 a.m. OK GNU C++14 TESTS 38 62 7987200 1800
57782715 bojverdict2 D July 26, 2019, 6:37 a.m. OK GNU C++14 TESTS 38 62 7987200 1800
38789989 param98 D May 31, 2018, 4:39 a.m. OK GNU C++14 TESTS 38 62 11264000 1800
54530648 huzaifa242 D May 23, 2019, 4:52 p.m. OK GNU C++14 TESTS 38 62 16076800 1800
51267606 curved_cave D March 13, 2019, 4:21 p.m. OK GNU C++14 TESTS 38 62 20070400 1800
56794588 nks43 D July 10, 2019, 12:01 p.m. OK GNU C++14 TESTS 38 77 7987200 1800
60347765 alimagde D Sept. 10, 2019, 1:11 p.m. OK GNU C++14 TESTS 38 77 7987200 1800
67594038 Sizzlk D Dec. 25, 2019, 9:56 a.m. OK GNU C++14 TESTS 38 77 7987200 1800
39011966 Slamur D June 7, 2018, 7:47 a.m. OK GNU C++14 TESTS 38 77 8396800 1800
57784902 bojverdict2 D July 26, 2019, 7:24 a.m. OK GNU C++17 TESTS 38 62 0 1800
55596693 lienquanpc D June 15, 2019, 3:26 p.m. OK GNU C++17 TESTS 38 62 0 1800
57784287 bojverdict2 D July 26, 2019, 7:10 a.m. OK GNU C++17 TESTS 38 62 2048000 1800
56731157 yuhta D July 9, 2019, 1:28 a.m. OK GNU C++17 TESTS 38 62 2048000 1800
57787067 1509cxt D July 26, 2019, 8:11 a.m. OK GNU C++17 TESTS 38 62 7987200 1800
56547878 dauzee D July 5, 2019, 8:25 a.m. OK GNU C++17 TESTS 38 62 12595200 1800
52575616 ZeroAmbition D April 10, 2019, 4:14 p.m. OK GNU C++17 TESTS 38 62 12697600 1800
57785273 circless D July 26, 2019, 7:32 a.m. OK GNU C++17 TESTS 38 62 16076800 1800
49759040 vjudge2 D Feb. 11, 2019, 7:57 a.m. OK GNU C++17 TESTS 38 62 80384000 1800
49759269 vjudge1 D Feb. 11, 2019, 8:04 a.m. OK GNU C++17 TESTS 38 62 80384000 1800
45387338 KulikAlex D Nov. 6, 2018, 6:29 p.m. OK Java 8 TESTS 38 155 0 1800
55979230 Ahmed.Shawky D June 23, 2019, 7:38 p.m. OK Java 8 TESTS 38 171 5939200 1800
37911418 Musin D May 5, 2018, 4:42 p.m. OK Java 8 TESTS 38 187 28774400 1800
37698517 reyad D April 29, 2018, 2:48 a.m. OK Java 8 TESTS 38 187 28876800 1800
37911149 Musin D May 5, 2018, 4:26 p.m. OK Java 8 TESTS 38 280 20684800 1800
38952977 IDzekh D June 4, 2018, 6:34 p.m. OK Java 8 TESTS 38 514 111104000 1800
52443717 hongquanntct D April 7, 2019, 7:16 a.m. OK Java 8 TESTS 38 577 45465600 1800
56186636 Ahmad D June 28, 2019, 5:17 a.m. OK Java 8 TESTS 38 639 0 1800
57815277 Dukkha D July 26, 2019, 7:20 p.m. OK Java 8 TESTS 38 717 0 1800
52943973 Vaibhav96 D April 18, 2019, 10:41 a.m. OK Java 8 TESTS 38 967 20684800 1800
45905247 vjudge2 D Nov. 18, 2018, 8:02 a.m. OK MS C++ TESTS 38 61 8294400 1800
45905559 vjudge5 D Nov. 18, 2018, 8:12 a.m. OK MS C++ TESTS 38 62 7987200 1800
45905292 vjudge3 D Nov. 18, 2018, 8:03 a.m. OK MS C++ TESTS 38 62 7987200 1800
47516566 verysya D Dec. 26, 2018, 10:20 a.m. OK MS C++ TESTS 38 78 15769600 1800
57786929 bojverdict2 D July 26, 2019, 8:08 a.m. OK MS C++ TESTS 38 124 409600 1800
57786893 kimisame_marisa D July 26, 2019, 8:07 a.m. OK MS C++ TESTS 38 124 409600 1800
49758850 vjudge2 D Feb. 11, 2019, 7:52 a.m. OK MS C++ TESTS 38 249 0 1800
57511488 CtrlAlt D July 22, 2019, 1:59 p.m. OK MS C++ 2017 TESTS 38 108 7987200 1800
59917090 areo D Sept. 2, 2019, 7:47 p.m. OK MS C++ 2017 TESTS 38 342 0 1800
52308472 junior08 D April 4, 2019, 1:28 p.m. OK PyPy 3 TESTS 38 1512 33177600 1800
37688480 shahril D April 28, 2018, 2:29 p.m. OK PyPy 3 TESTS 38 1824 47001600 1800
43667014 Onesh0t D Oct. 2, 2018, 12:26 a.m. OK Python 2 TESTS 38 1138 1945600 1800

remove filters

Back to search problems