Advertisement
Dzham

Untitled

Feb 10th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. #include <iostream>
  2. #include <set>
  3. #include <vector>
  4. #include <sstream>
  5. #include <string>
  6.  
  7. bool is_number(const std::string& s) {
  8. if (s[0] >= '0' && s[0] <= '9') {
  9. return true;
  10. }
  11. return false;
  12. }
  13.  
  14. std::pair<std::string, std::set<std::string>> split(const std::string& line) {
  15. std::string task;
  16. int count;
  17. std::set<std::string> complete;
  18. size_t found = line.find(" ");
  19. task = line.substr(0, found - 1);
  20. size_t found2 = line.find(" ", found + 1);
  21. count = std::stoi(line.substr(found + 1, found2 - found));
  22. while ()
  23. }
  24.  
  25. int main() {
  26. int count;
  27. std::string task;
  28. std::string line;
  29. std::vector<std::string> contests;
  30. std::vector<std::set<std::string>> complete;
  31. while (std::getline(std::cin, line)) {
  32. std::stringstream l(line);
  33. l >> line;
  34. task = l;
  35. for (std::string s; l >> s; ) {
  36.  
  37. }
  38. }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement