문제접근![](data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==)
•
문자열의 길이를 비교함
놓쳤던 부분![](data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==)
코드![](data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==)
2024 KB
0 ms
#include <iostream>
#include <string>
using namespace std;
int main(void)
{
string j;
string d;
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
cin >> j;
cin >> d;
if (j.size() < d.size())
cout << "no";
else
cout << "go";
return (0);
}
C++
복사