Skip to content

Instantly share code, notes, and snippets.

@eltonvs
Created August 12, 2016 21:19
Show Gist options
  • Save eltonvs/93a93bd2e9cd990a4b07753f34cdee4f to your computer and use it in GitHub Desktop.
Save eltonvs/93a93bd2e9cd990a4b07753f34cdee4f to your computer and use it in GitHub Desktop.
adsaassadsagthçVJÇ
#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