Need a unique gift idea?
A Pastebin account makes a great Christmas gift

18/19 Q1: The uprising mountain range; X34732

Luxeon94 Nov 15th, 2018 (edited) 94 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. #include <iostream>
  2. using namespace std;
  4. int main(){
  5.     char c1,c2,c3;
  6.     int count=0;
  7.     int lim;
  8.     cin >> lim;
  9.     while(lim!=0){
  10.         --lim;
  11.         cin >> c1 >> c2 >> c3;
  12.         if(c1=='/' and c2=='/' and c3=='/') ++count;
  13.         else if(c1=='-' and c2=='/' and c3=='/') ++count;
  14.         else if(c1=='-' and c2=='-' and c3=='/') ++count;
  15.     }
  16.     cout << count <<endl;
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand