Advertisement
Saleh127

CF 682A

Aug 8th, 2020
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. ios_base::sync_with_stdio(0);
  6. cin.tie(0);cout.tie(0);
  7.  
  8. long long int a,c,d=0,e,f,i,j,k,l;
  9. cin>>a>>c;
  10. for(i=1;i<=a;i++)
  11. {
  12. d+=(c+i%5)/5;
  13. }
  14. cout<<d<<endl;
  15. return 0;
  16. }
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement