Skip to content

Commit b4b254f

Browse files
committed
Solve 3224 - Aaah! in c++
1 parent aebf1f8 commit b4b254f

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

solutions/beecrowd/3224/3224.cpp

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#include <cstdint>
2+
#include <iostream>
3+
#include <string>
4+
5+
int main() {
6+
std::ios_base::sync_with_stdio(false);
7+
std::cin.tie(0);
8+
9+
std::string doctor_request, actual_ah;
10+
11+
while (std::cin >> actual_ah) {
12+
std::cin >> doctor_request;
13+
14+
if (doctor_request.length() > actual_ah.length()) {
15+
std::cout << "no" << "\n";
16+
} else {
17+
std::cout << "go" << "\n";
18+
}
19+
}
20+
21+
return 0;
22+
}

0 commit comments

Comments
 (0)