Technocup 2021 - Elimination Round 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
1413 Technocup 2021 - Elimination Round 1 FINISHED False 7200 133556063 Oct. 25, 2020, 11:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2049 ) E Solo mid Oracle PROGRAMMING binary search math ternary search

B"Meka-Naruto plays a computer game. His character has the following ability: given an enemy hero, deal a instant damage to him, and then heal that enemy b health points at the end of every second, for exactly c seconds, starting one second after the ability is used. That means that if the ability is used at time t , the enemy's health decreases by a at time t , and then increases by b at time points t + 1 , t + 2 , ..., t + c due to this ability. The ability has a cooldown of d seconds, i. e. if Meka-Naruto uses it at time moment t , next time he can use it is the time t + d . Please note that he can only use the ability at integer points in time, so all changes to the enemy's health also occur at integer times only. The effects from different uses of the ability may stack with each other; that is, the enemy which is currently under k spells gets k cdot b amount of heal this time. Also, if several health changes occur at the same moment, they are all counted at once. Now Meka-Naruto wonders if he can kill the enemy by just using the ability each time he can (that is, every d seconds). The enemy is killed if their health points become 0 or less. Assume that the enemy's health is not affected in any way other than by Meka-Naruto's character ability. What is the maximal number of health points the enemy can have so that Meka-Naruto is able to kill them? The first line contains an integer t ( 1 <= q t <= q 10^5 ) standing for the number of testcases. Each test case is described with one line containing four numbers a , b , c and d ( 1 <= q a, b, c, d <= q 10^6 ) denoting the amount of instant damage, the amount of heal per second, the number of heals and the ability cooldown, respectively. For each testcase in a separate line print -1 if the skill can kill an enemy hero with an arbitrary number of health points, otherwise print "...

Tutorials

Codeforces Round 679 (Div. 1, Div. 2) and Technocup Round 1 editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
96698524 NeoSab E Oct. 25, 2020, 1:03 p.m. OK GNU C11 TESTS 18 514 0
96738971 wyzwyz E Oct. 26, 2020, 1:35 a.m. OK GNU C++11 TESTS 19 61 0
96737955 wyzwyz E Oct. 26, 2020, 1:02 a.m. OK GNU C++11 TESTS 19 61 0
96737912 wyzwyz E Oct. 26, 2020, 1 a.m. OK GNU C++11 TESTS 19 62 0
96748284 00001 E Oct. 26, 2020, 5:42 a.m. OK GNU C++11 TESTS 19 93 0
96701030 s_r_f E Oct. 25, 2020, 1:30 p.m. OK GNU C++11 TESTS 18 93 0
96711724 Tian_Xing E Oct. 25, 2020, 3:27 p.m. OK GNU C++11 TESTS 19 93 0
96701051 namespace_std E Oct. 25, 2020, 1:30 p.m. OK GNU C++11 TESTS 18 124 0
96746965 4c4f4c E Oct. 26, 2020, 5:16 a.m. OK GNU C++11 TESTS 19 249 0
96692722 TryMax E Oct. 25, 2020, 12:48 p.m. OK GNU C++11 TESTS 18 265 0
96697126 zakhar0 E Oct. 25, 2020, 1 p.m. OK GNU C++11 TESTS 18 280 0
96689818 fractal E Oct. 25, 2020, 12:40 p.m. OK GNU C++14 TESTS 18 124 0
96745952 juggernaut E Oct. 26, 2020, 4:54 a.m. OK GNU C++14 TESTS 19 124 0
96690724 abdullinsaid E Oct. 25, 2020, 12:42 p.m. OK GNU C++14 TESTS 18 155 0
96700651 cypherop E Oct. 25, 2020, 1:23 p.m. OK GNU C++14 TESTS 18 155 0
96680872 Rwarazor E Oct. 25, 2020, 12:14 p.m. OK GNU C++14 TESTS 18 156 0
96700788 cypherop E Oct. 25, 2020, 1:25 p.m. OK GNU C++14 TESTS 18 186 0
96700943 ujju_sucks E Oct. 25, 2020, 1:29 p.m. OK GNU C++14 TESTS 18 404 0
96701662 MagicSpark E Oct. 25, 2020, 1:38 p.m. OK GNU C++14 TESTS 19 436 0
96732326 ShArt23 E Oct. 25, 2020, 9:42 p.m. OK GNU C++14 TESTS 19 482 0
96709696 All1gator E Oct. 25, 2020, 3:02 p.m. OK GNU C++14 TESTS 19 545 0
96736155 AlexFetisov E Oct. 25, 2020, 11:46 p.m. OK GNU C++17 TESTS 19 140 0
96700268 moonshine E Oct. 25, 2020, 1:17 p.m. OK GNU C++17 TESTS 18 140 0
96666230 antony191 E Oct. 25, 2020, 11:38 a.m. OK GNU C++17 TESTS 18 155 0
96744155 talant110726 E Oct. 26, 2020, 4:08 a.m. OK GNU C++17 TESTS 19 155 0
96697042 Serge07 E Oct. 25, 2020, 1 p.m. OK GNU C++17 TESTS 18 155 0
96693335 Sevlll E Oct. 25, 2020, 12:50 p.m. OK GNU C++17 TESTS 18 155 0
96693155 profi E Oct. 25, 2020, 12:50 p.m. OK GNU C++17 TESTS 18 155 0
96688401 Kostya_Smirnov E Oct. 25, 2020, 12:36 p.m. OK GNU C++17 TESTS 18 155 0
96676240 Brovko E Oct. 25, 2020, 12:02 p.m. OK GNU C++17 TESTS 18 155 0
96671595 oleh1421 E Oct. 25, 2020, 11:50 a.m. OK GNU C++17 TESTS 18 155 2457600
96701027 QAQAutoMaton E Oct. 25, 2020, 1:30 p.m. OK GNU C++17 (64) TESTS 18 46 4198400
96694050 nikitagolu8ev E Oct. 25, 2020, 12:52 p.m. OK GNU C++17 (64) TESTS 18 93 0
96697527 Kot-Skazochnik E Oct. 25, 2020, 1:01 p.m. OK GNU C++17 (64) TESTS 18 93 0
96698076 Helloo_zk E Oct. 25, 2020, 1:02 p.m. OK GNU C++17 (64) TESTS 18 93 0
96731475 Kot-Skazochnik E Oct. 25, 2020, 9:16 p.m. OK GNU C++17 (64) TESTS 19 93 0
96703787 Mangooste E Oct. 25, 2020, 1:56 p.m. OK GNU C++17 (64) TESTS 19 108 0
96678603 Ormlis E Oct. 25, 2020, 12:08 p.m. OK GNU C++17 (64) TESTS 18 109 0
96695916 Be_dos E Oct. 25, 2020, 12:57 p.m. OK GNU C++17 (64) TESTS 18 109 0
96694782 Artyom123 E Oct. 25, 2020, 12:54 p.m. OK GNU C++17 (64) TESTS 18 109 0
96729888 __cucumber__ E Oct. 25, 2020, 8:33 p.m. OK GNU C++17 (64) TESTS 19 124 0
96735397 Slamur E Oct. 25, 2020, 11:08 p.m. OK Java 8 TESTS 19 218 0
96735386 Slamur E Oct. 25, 2020, 11:08 p.m. OK Java 8 TESTS 19 343 0
96696107 a.stepanov281005 E Oct. 25, 2020, 12:58 p.m. OK MS C++ 2017 TESTS 18 405 0
96699378 GrandFruit E Oct. 25, 2020, 1:04 p.m. OK PyPy 3 TESTS 18 889 30720000
96696820 Arsen4ikVar E Oct. 25, 2020, 12:59 p.m. OK Python 2 TESTS 18 577 1638400

remove filters

Back to search problems