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