
Сообщение от
outoftime
C++ |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| #include <iostream>
#include <string>
#include <algorithm>
using namespace std;
string R(string s){return (count_if(s.begin(),s.end(),isdigit) == s.size()) ? ("Yes") : ("No");}
int main()
{
string s;
getline(cin,s);
cout << (R(s)) << endl;
system("pause");
return 0;
} |
|
Спасибо, думаю, это мне подойдет.