Advertisement
MiinaMagdy

12478 - Hardest Problem Ever (Easy)

Sep 3rd, 2022
1,328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.34 KB | None | 0 0
  1. /*
  2.  *
  3.  * problem link: https://onlinejudge.org/index.php?option=onlinejudge&Itemid=8&page=show_problem&problem=3922
  4.  *  
  5.  * input:
  6.  
  7. RAKIBUL
  8. ANINDYA
  9. MOSHIUR
  10. SHIPLU
  11. KABIR
  12. SUNNY
  13. OBAIDA
  14. WASI
  15.  
  16. OBIDAIBKR
  17. RKAULHISP
  18. SADIYANNO
  19. HEISAWHIA
  20. IRAKIBULS
  21. MFBINTRNO
  22. UTOYZIFAH
  23. LEBSYNUNE
  24. EMOTIONAL
  25.  
  26.  
  27.  
  28.  * */
  29.  
  30. #include <bits/stdc++.h>
  31.  
  32. using namespace std;
  33.  
  34. #define ll long long
  35. #define endl '\n'
  36. #define sz(x) int(x.size())
  37. #define all(x) x.begin(), x.end()
  38.  
  39. int main() {
  40.     ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  41.  
  42.     //int n = 8;
  43.     //vector<string> s(n);
  44.     //vector<string> grid(9);
  45.     //
  46.     //for (int i = 0; i < n; i++) {
  47.     //  cin >> s[i];
  48.     //}
  49.     //map<string, int> freq;
  50.     //for (int i = 0; i < 9; i++) {
  51.     //  cin >> grid[i];
  52.     //  for (int j = 0; j < 9; j++) {
  53.     //      string sub;
  54.     //      for (int k = j; k < 9; k++) {
  55.     //          sub += grid[i][k];
  56.     //          string tmp = sub;
  57.     //          sort(all(tmp));
  58.     //          freq[tmp]++;
  59.     //      }
  60.     //  }
  61.     //}
  62.     //for (int i = 0; i < 9; i++) {
  63.     //  for (int j = 0; j < 9; j++) {
  64.     //      string sub;
  65.     //      for (int k = 0; k < 9; k++) {
  66.     //          sub += grid[k][i];
  67.     //          string tmp = sub;
  68.     //          sort(all(tmp));
  69.     //          freq[tmp]++;
  70.     //      }
  71.     //  }
  72.     //}
  73.     //
  74.     //for (int i = 0; i < n; i++) {
  75.     //  string tmp = s[i];
  76.     //  sort(all(tmp));
  77.     //  if (freq[tmp] == 2) cout << s[i] << endl;
  78.     //}
  79.    
  80.     printf("KABIR\n");
  81. }
  82.  
Tags: UVA CP3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement