Cod sursa(job #3309342)

Utilizator initrdIarto Paul initrd Data 3 septembrie 2025 18:23:37
Problema A+B Scor 100
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 1.7 kb
//#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;
}