Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include <string>
- #include <math.h>
- using namespace std;
- int main()
- {
- int e = 0;
- cin >> e;
- char log[1001];
- cin.getline( log, 1001 );
- for( int i = 0; i < e; i++ )
- {
- cin.getline( log, 1001 );
- int ans = 1;
- for( int j = 0; log[j] != '\0'; j++ )
- if( log[j] == '\\' || log[j] == '/' || log[j] == '-' || log[j] == '|' )
- ans++;
- cout << "Cyborg #" << (i+1) << ": " << ans << " piece" << (ans==1 ? "? You're supposed to be stronger than this!" : "s!") << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement