diff --git a/quito/11.2 b/quito/11.2 new file mode 100755 index 0000000..100de87 Binary files /dev/null and b/quito/11.2 differ diff --git a/quito/11.2.cpp b/quito/11.2.cpp new file mode 100644 index 0000000..698bc73 --- /dev/null +++ b/quito/11.2.cpp @@ -0,0 +1,33 @@ +#include +using namespace std; + +int main () { + int o, n, m, t, h; + cin >> o >> n >> m >> t >> h; + int ts, tts, nap, ora; + + vector> v(m+1, vector(n+1)); + + for (int i = 0; i < o; i++) { + cin >> ts >> tts >> nap >> ora; + v[tts][ts] = true; + } + + int out; + int max =0; + + for (int i =0; i < n+1; i++) { + int counter = 0; + for (int j = 0; j < m+1; j++) { + //cout< max) { + max = counter; + out = i; + } + //cout< +using namespace std; + +int main() { + int n; + cin >> n; + + vector>allatok(n); + setkaja; + set out; + + + for (int i =0; i < n ;i++) { + cin >> allatok[i].first; + //cout<<"s"; + cin >> allatok[i].second; + kaja.insert(allatok[i].first); + } + + for (int i = 0; i < n;i++) { + if (kaja.count(allatok[i].second)) { + //cout< +using namespace std; + +int main() { + int n; + cin >> n; + vector sorrend(n); + set users; + + for (int i = 0; i < n; i++) { + cin >> sorrend[i]; + } + + cout<= 0; i--) { + if (!users.count(sorrend[i])) { + cout< +using namespace std; + +int main() { + int n, m; + cin >> n; + set store1; + set store2; + set out; + for (int i = 0; i < n; i++) { + string temp; + cin >> temp; + store1.insert(temp); + } + cin >> m; + for (int i = 0; i < m; i++) { + string temp; + cin >> temp; + store2.insert(temp); + } + + for (string x : store1) { + if (!store2.count(x)) { + out.insert(x); + } + } + for (string x : store2) { + if (!store1.count(x)) { + out.insert(x); + } + } + + cout< +using namespace std; + +int main() { + + string input; + cin >> input; + for (char i = 'a'; i <= 'z'; i++) { + + cout< +using namespace std; + +int main() { + int n, m; + cin >> n >> m; + + map languages; + map appearance; + + for (int i = 0; i < n+m; i++) { + int cnt; + string lang; + cin >> cnt; + getline(cin, lang); + lang = lang.substr(1); + languages[lang] = cnt; + appearance[lang] += 1; + } + + int max = 0, min = 100000; + string maxname = "NINCS", minname = "NINCS"; + + for (auto p : languages) { + if (appearance[p.first] == 2 && p.second > max) { + max = p.second; + maxname = p.first; + } + if (appearance[p.first] == 2 && p.second < min) { + min = p.second; + minname = p.first; + } + } + + cout< +using namespace std; + +int main() { + int n; + cin >> n; + + sethatvanyok; + sethasznalt; + + long a = 2; + for (int i =0; i < 30; i++) { + hatvanyok.insert(a); + a = a * 2; + //cout< szamok(n); + + for (int i = 0; i < n; i++) { + cin >> szamok[i]; + + } + + int out = 0; + + for (int i = 0; i < n; i++) { + for (int j = i+1; j < n; j++) { + if (!hasznalt.count(szamok[i] + szamok[j])) { + if (hatvanyok.count(szamok[i] + szamok[j])) { + out++; + hasznalt.insert(szamok[i] + szamok[j]); + } + } else { + out++; + } + } + } + cout<