Official

B - Welcome to AtCoder Land Editorial by en_translator


If you are new to learning programming and do not know where to start, please try Problem A “Welcome to AtCoder” from practice contest. There you can find a sample code for each language.
Also, if you are not familiar with problems in programming contests, we recommend you to try some problems in “AtCoder Beginners Selection” (https://atcoder.jp/contests/abs).


Receive two strings as the input, and implement a conditional branch to print the answer. In the conditional expression in the conditional branch, you need to compare strings and take the logical sum of the two conditions. For specific ways to implement it, please refer to the sample code (C++ and Python) below.

Sample code (C++):

#include <bits/stdc++.h>

using namespace std;

int main() {
    string s, t;
    cin >> s >> t;
    if (s == "AtCoder" && t == "Land") {
        cout << "Yes" << endl;
    } else {
        cout << "No" << endl;
    }
}

Sample code (Python):

s, t = input().split()
if s == "AtCoder" and t == "Land":
    print("Yes")
else:
    print("No")

posted:
last update: