Advertisement
Josif_tepe

Untitled

Mar 20th, 2024
599
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. #include <set>
  4. using namespace std;
  5.  
  6. int main() {
  7.    
  8.     multiset<int> ms;
  9.    
  10.     ms.insert(5);
  11.     ms.insert(2);
  12.     ms.insert(1);
  13.     ms.insert(6);
  14.    
  15.     if(ms.find(3) != ms.end()) {
  16.         cout << "DA" << endl;
  17.     }
  18.     else {
  19.         cout << "NE" << endl;
  20.     }
  21.     return 0;
  22. }
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement