COM 300 Lecture Notes - Standard Streams

47 views4 pages
2 Sep 2020
School
Department
Course
Professor

Document Summary

Lili is practicing using her favorite character templor assasson. The character she is playing has a unique skill. Templor assasson has 100 base damage and 0 bonus damage at start. For each hit, bonus damage increase by 50. Lili wants to know the total damage of templor assasson after n hit(s). Given 1 line consist of 1 integer n the number of hit(s) of templor assasson. Output one number that describe the total damage of templor assasson. For sample test case 3, damage for every hit by templor assasson : hit 1 : 100 + 0 = 100, hit 2 : 100 + 50 = 150, hit 3 : 100 + 100 = 200. Thus, total damage of templor assasson is 450. c(cid:13) school of computer science - binus, 2019. Lili sedang berlatih untuk bermain menggunakan karakter favoritnya templor assasson. Untuk setiap pukulan yang dikeluarkan, bonus kekuatan pukul akan bertambah sebesar 50.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents