Pagini recente » Cod sursa (job #1137082) | Cod sursa (job #2372585) | Cod sursa (job #2970515) | Cod sursa (job #2793826) | Cod sursa (job #1460534)
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
int main()
{
ifstream in("adunare.in");
ofstream out("adunare.out");
tree <int, null_type, less <int>, rb_tree_tag, tree_order_statistics_node_update> s;
int a, b;
in >> a >> b;
in.close();
s.insert(a);
s.insert(b);
out << *s.find_by_order(0) + *s.find_by_order(1) << endl;
out.close();
return 0;
}