Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int a,
- u,
- f,
- arr[100][3];
- ///////////////////////////////////////////////////
- int main() //
- {
- cin >> a;
- for(int i = 0; i < a; i++)
- {
- cin >> arr[i][i];
- f += arr[i][i] % 10;
- arr[i][i] /= 10;
- f += arr[i][i] % 10;
- arr[i][i] /= 10;
- f += arr[i][i] % 10;
- cout << f << endl;
- if(f >= 2) u++;
- f = 0;
- }
- cout<< u << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement