tuttelikz

#264 - Оттепель [?]

Sep 25th, 2015
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.60 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int daysConsidered, temperature;
  8.     int countOttepel = 0;
  9.     cin>>daysConsidered;
  10.     for (int i=0; i<daysConsidered; i++) {
  11.         cin>>temperature[i];
  12.         if (temperature[i]>0) {
  13.             countOttepel++;
  14.             while (temperatureSeries[m]>0) {
  15.                 countOttepel++;
  16.                 m++;
  17.             }
  18.             else {
  19.                 break;
  20.             }
  21.  
  22.             for (int lineDays=0; lineDays)
  23.             cin>>temperature;
  24.         }
  25.     }
  26.     cout << "Hello world!" << endl;
  27.     return 0;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment