Cod sursa(job #1667112)
Utilizator | Data | 28 martie 2016 17:43:14 | |
---|---|---|---|
Problema | Ciurul lui Eratosthenes | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva educationala | Marime | 0.23 kb |
#include <fstream>
#include <string.h>
using namespace std;
ifstream in ("ciur.in");
ofstream out("ciur.out");
int main()
{
char p[10000];
in.get(p,99999) ;
// out<<p;
out<<strlen(p)/strlen("Eratosthenes");
}