Created
August 12, 2016 21:19
-
-
Save eltonvs/93a93bd2e9cd990a4b07753f34cdee4f to your computer and use it in GitHub Desktop.
adsaassadsagthçVJÇ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
#include <sstream> | |
struct Problem { | |
int id; | |
bool solved; | |
}; | |
struct Team { | |
int points; | |
std::vector<Problem> submissions; | |
}; | |
int main() { | |
int n; | |
int team_id, problem_id, time; | |
char status; | |
std::string line; | |
Team teams[100]; | |
std::vector<Team> teams_ids; | |
std::cin >> n; | |
std::cin.ignore(); | |
std::cin.ignore(); | |
while (n--) { | |
// Do the magic here | |
while (std::getline(std::cin, line) && line != "\n" && line != "") { | |
std::stringstream ss(line); | |
ss >> team_id >> problem_id >> time >> status; | |
teams_ids. | |
} | |
teams_ids.clear(); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment