If you hear “Ping, Pong, Pong, ...” then Pong won the 1st point and served again. Explanation: Ping served, Pong returned, Ping missed (no sound), Pong served again.
Write a program that reads an audio trace of a game -- each line contains either Ping or Pong.. At the end of the game, print the score.
use *** for out top
The 4 quadrants of a 2D space are:
Point P is in Quadrant II.
The input vector will always have exactly 1 quadrant. Ignore the case of points that are along the axis (e.g. 0,y and x,0 are not valid inputs).
Require unlimited lines of information. Each line consists of an integer n followed by a sequence of n numbers that are integer separated by space.Check if it is a jolly jumper, if it is Jolly, but if not, the result is Not jolly.