Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
/**
* Auto-generated code below aims at helping you parse
* the standard input according to the problem statement.
**/
int main()
{
// game loop
while (1) {
int y;
cin >> y; cin.ignore();
int opp_y;
cin >> opp_y; cin.ignore();
int ball_x;
int ball_y;
cin >> ball_x >> ball_y; cin.ignore();
int speed_x;
int speed_y;
cin >> speed_x >> speed_y; cin.ignore();
// Write an action using cout. DON'T FORGET THE "<< endl"
// To debug: cerr << "Debug messages..." << endl;
cout << ball_y<<endl;
}
}