Cod sursa(job #2259423)
| Utilizator | Data | 13 octombrie 2018 12:14:45 | |
|---|---|---|---|
| Problema | Cifra | Scor | 0 |
| Compilator | cpp-64 | Status | done |
| Runda | Arhiva de probleme | Marime | 0.24 kb |
#include<iostream>
#include<fstream>
#include<math.h>
using namespace std;
int main(){
int n,i,v[500];
ifstream in4("cifra.in");
ofstream out("cifra.out");
in4>>n;
int suma=0;
for(i=0;i<n;i++){
suma+=pow(i,i);
}
out<<suma;
}
