Cod sursa(job #470326)
| Utilizator | Data | 13 iulie 2010 10:36:10 | |
|---|---|---|---|
| Problema | A+B | Scor | 0 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.44 kb |
#include <fstream>
#include <vector>
#include <queue>
#include <algorithm>
using namespace std;
int x,id,i;
ofstream rez("rez.in");
ofstream out("adunare.out");
ifstream ind("ind.in");
int main () {
rez<<"4544 14113 362 7646 3 6 14 44 1956 2000";
ind>>id;
ind.close();
rez.close();
ifstream rez("rez.in");
ofstream ind("ind.in");
for(i=0;i<=id;i++)
rez>>x;
out<<x;
ind<<(id+1);
return 0;
}
