Pagini recente » Cod sursa (job #3206691) | Cod sursa (job #314629) | Cod sursa (job #1475677) | Cod sursa (job #2279111) | Cod sursa (job #670632)
Cod sursa(job #670632)
#import<iostream>
#include <time.h>
#include <fstream>
using namespace std;
int main(){
clock_t t1,t2;
t1=clock();
//-----------------------------------------------------------
ifstream ifile;
ofstream ofile;
int a,b;
ifile.open("adunare.in");
ifile>>a>>b;
//cout<<a<<" "<<b;
ifile.close();
ofile.open("adunare.out");
ofile<<a+b;
ofile.close();
//-----------------------------------------------------------
t2=clock();
float diff (((float)t2-(float)t1)/CLOCKS_PER_SEC);
cout<<diff<<endl;
system("PAUSE");
return 0;
}