SHARE
TWEET

Мосты и Автобусы

Dmitrii1111111111111 May 16th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. using namespace std;
  3. long long ar[10001];
  4. const int most=437;
  5. int main()
  6. {
  7.     int n;
  8.     cin>>n;
  9.     for(int i=0; i<n; i++){
  10.         int n;
  11.         cin>>n;
  12.         ar[i]=n;
  13.     }
  14.     int cr=0;
  15.     for(int i=0; i<n; i++){
  16.         if(ar[i]<=most){
  17.             cr++;
  18.         }
  19.     }
  20.     if(cr!=0){
  21.         cout<<"Crash "<<cr;
  22.     }else{
  23.         cout<<"No crash";
  24.     }
  25. }
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