Question: Help me write c language code The King of Fighters Easy AC Ratio: 28.9% (467/1617) #Loop #felse #Expression The King of Fighters is a series


Help me write c language code
The King of Fighters Easy AC Ratio: 28.9% (467/1617) #Loop #felse #Expression The King of Fighters is a series of fighting games. In the game, two opponents fight with each other until one of them wins. Since TAs daily works are stressful, we asked you to create a simulator of the fighting game to help TAs relieve their stress. This simulator contains the following things: 1. Two opponents' health points 2. A series of attacks 3. For each round, two opponents hit each other in turns, until one of them run out of health points INPUT AND OUTPUT EXAMPLE Input There are two lines in the input. First line contains two integer numbers which represent the health points of player A and B respectively. Second line are series of attacks from each other. The first one is a hit from A, and the second one is a hit from B, and so on. Output The player who wins. Limits Your program needs to finish task in 1 second. Your program can only use memory less than 5000 KB. INPUT AND OUTPUT EXAMPLE Sample 1 Input 675891737 1308254417 9443 147 9686 7275 2908 330 3454 201 2754 7327 4384 5397 8703 24 Output B Sample 2 Input 1071552493 803146823 7349 8339 4922 557 6018 3434 3471 2378 8861 6662 5011 4361 1487 Output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
