Cod sursa(job #1460534)
| Utilizator | Data | 13 iulie 2015 01:16:33 | |
|---|---|---|---|
| Problema | A+B | Scor | 70 |
| Compilator | cpp | Status | done |
| Runda | Lista lui wefgef | Marime | 0.49 kb |
#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;
}
