daily pastebin goal
23%
SHARE
TWEET

Persian Party

a guest Mar 4th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. using namespace std;
  3. int main(){
  4.    
  5.     int n;
  6.         cin>> n;
  7.        
  8.     int a[n], d[n], v=0;
  9.    
  10.         for(int i=0; i<n; i++){
  11.             cin>> a[i];
  12.             cin>> d[i];
  13.        
  14.             v+=d[i]-a[i]+1;
  15.         }      
  16.     cout<< v;
  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
 
Top