И это было моим представлением для этого вопроса на кодовых точках: < /p>
#include
int main() {
std::string a;
std::cin >> a;
int total = a.length();
if(!isdigit(a[0])) {
if(a.length()
Подробнее здесь: https://stackoverflow.com/questions/796 ... codeforces
Мобильная версия