Pagini recente » Cod sursa (job #3307410) | Cod sursa (job #146740) | Monitorul de evaluare | Cod sursa (job #1601190) | Cod sursa (job #3309342)
//#include <fstream>
//#include <vector>
//#include <cmath>
//#include <cstring>
//
//void Afisare (std::vector<int>& v, std::fstream& out) {
// for (int i : v) out << i << " ";
// out << std::endl;
//}
//
//void Back(int n, std::fstream &out, std::vector<int>& v, int sum = 0, int r = 0) {
// if (sum == n) {
// Afisare(v, out);
// return;
// }
//
// if (sum > n) return;
//
// if (r <= 3) {
// v.push_back(3);
// Back(n, out, v, sum + 3, 3);
// v.pop_back();
// }
//
// if (r <= 5) {
// v.push_back(5);
// Back(n, out, v, sum + 5, 5);
// v.pop_back();
// }
//}
//
//int main(void) {
//
// std::string i = "fibo0.in";
// std::string o = "fibo0.out";
//
// std::fstream in (i, std::ios::in);
// std::fstream out(o, std::ios::out);
//
// int n, s = 0;
// in >> n;
//
// std::vector<int> v;
// Back(n, out, v, s);
//
// in.close();
// out.close();
//
// return 0;
//}
//#include <iostream>
//
//int main() {
//
// int m, n, t[51][51] = {};
//
// std::cin >> m >> n;
//
// for (int i = 1; i <= m; i++) {
// for (int j = 1; j <= n; j++) {
// int nr1, nr2;
//
// nr1 = i * 10 + j;
// nr2 = j * 10 + i;
//
// t[i][j] = nr1 < nr2 ? nr1 : nr2;
// }
// }
//
// for (int i = 1; i <= m; ++i) {
// for (int j = 1; j <= n; j++)
// std::cout << t[i][j] << " " ;
// std::cout << std::endl;
// }
//
// return 0;
//} III.2 2024.05
#include <fstream>
int main() {
std::ifstream in("adunare.in");
std::ofstream out("adunare.out");
long long int a, b;
in >> a >> b;
out << a + b;
in.close();
out.close();
return 0;
}