SHARE
TWEET

Problem-A Maraqlı hasil

kananasgarli90 Jun 6th, 2020 927 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <set>
  3. using namespace std;
  4. int main()
  5. {
  6.     set<int>st;
  7.     int a, b, c, d;
  8.     cin>>a>>b>>c>>d;
  9.     if(a > b){
  10.         swap(a, b);
  11.     }
  12.     if(c > d){
  13.         swap(c, d);
  14.     }
  15.     for(int i = a; i <= b; i++){
  16.         for(int j = c; j <= d; j++){
  17.             st.insert(i*j);
  18.         }
  19.     }
  20.     cout<<st.size()<<endl;
  21. }
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