Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- string s;
- int main()
- {
- cin >> s;
- s = s + "!";
- for (int i = 0; i < s.size(); i++) {
- if (s[i] >= 'A') && (s[i] <= 'Z') {
- if () {
- q = "";
- k = 1;
- }
- }
- else
- if (s[i] >= '0') && (s[i] <= '9') {
- k++;
- q = q+s[i];
- }
- else {
- k = 0;
- // H123654??
- if (max ) {
- q = "";
- k = 1;
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement