Pagini recente » Calibrare limite de timp | Istoria paginii runda/thrice/clasament | Istoria paginii agm-2018/runda1/clasament | Cod sursa (job #426935) | Cod sursa (job #1379962)
#include <iostream>
#include <fstream>
#include <stdlib.h>
int main( int argc, char* argv[] )
{
std::ifstream file("adunare.in");
std::string firstLine;
std::string secondLine;
file >> firstLine >> secondLine;
file.close();
int first = atoi(firstLine.c_str());
int second = atoi( secondLine.c_str());
std::ofstream fileOut("adunare.out");
fileOut << first+second;
fileOut.close();
return 0;
}