Official
A - illegal 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).
It essentially asks to determine if the length is a multiple of \(5\). For example, it can be implemented as follows:
Sample code in Python
s = input()
print("Yes" if len(s) % 5 == 0 else "No")
Sample code in C++
#include <bits/stdc++.h>
using namespace std;
int main(){
string s; cin >> s;
cout << (s.size() % 5 == 0 ? "Yes" : "No") << endl;
}
posted:
last update: