Advertisement
Semior001

Untitled

Dec 21st, 2016
365
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3.  
  4. int main(){
  5.     freopen("a.in","r",stdin);
  6.     string s;
  7.     int cnt = 0;
  8.     while(getline(cin, s)!=0){
  9.         if(s==""){
  10.             cnt++;
  11.         }
  12.     }
  13.     cout << cnt << endl;
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement