COM 300 Lecture Notes - Standard Streams
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.