|
|
back to boardc++ Accepted Simple Solution Posted by Trest 1 Aug 2021 22:35 #include <iostream> #include <string> int main() { int n, gCount = 2; std::cin >> n; std::string guest; while (n--) { std::cin >> guest; gCount++; if (guest.find("+one", 0) != std::string::npos) gCount++; } if (gCount == 13) gCount++; std::cout << gCount * 100 << std::endl;
return 0; } |
|
|