Advertisement
skimono

Untitled

Jun 24th, 2021
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.83 KB | None | 0 0
  1. bool fnd = false;
  2.                 for (auto it = sup[0].begin(); it != sup[i].end(); it++) {
  3.                     bool h1 = true;
  4.                     for (i = 1; i < k; i++) {
  5.                         if (sup[i].find(*it) == sup[i].end()) {
  6.                             h1 = false;
  7.                             break;
  8.                         }
  9.                         else {
  10.                             continue;
  11.                         }
  12.                     }
  13.                     if (h1) {
  14.                         fnd = true;
  15.                         break;
  16.                     }
  17.                     else {
  18.                         continue;
  19.                     }
  20.                 }
  21.                 if (fnd) {
  22.                     s += "1";
  23.                 }
  24.                 else {
  25.                     s += "0";
  26.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement