Anik_Akash

tralling zero

Dec 26th, 2020
670
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<bits/stdc++.h>
  2. using namespace    std;
  3.  
  4. #define flush        cin.ignore(numeric_limits<streamsize>::max(),'\n')
  5. #define fasterio     ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
  6. #define NL           printf("\n")
  7. #define fin          freopen("int.txt","r",stdin)
  8. #define fout         freopen("ans2.txt","w",stdout)
  9.  
  10.  
  11. //who cares? I want to give some scary looks to my code... XD//
  12.  
  13.  
  14. typedef long long int       ll;
  15. typedef double              dl;
  16. typedef unsigned long long  ul;
  17.  
  18. // ------------------------------------Constants-------------------------------------//
  19.  
  20. #define pi           (acos(-1.0)) //3.1415926535897932384626
  21. #define mx           7500000
  22. #define dpoint(x)    fixed<<setprecision(x)
  23.  
  24.  
  25. int main()
  26. {
  27.    //fin;
  28.    //fout;
  29.    vector<int>num;
  30.  
  31.     int sum=0;
  32.    
  33.     for(int n=1; n<100; n++){
  34.         do{
  35.             n = n/5;
  36.             sum = sum+n;
  37.         }while(n>0);
  38.         num.push_back(sum);
  39.     }
  40.  
  41.    cout<<num[10]<<endl;
  42.    return 0;
  43.    
  44. }
RAW Paste Data