Cod sursa(job #990105)

Utilizator classiusCobuz Andrei classius Data 27 august 2013 14:38:29
Problema Flux maxim Scor 0
Compilator cpp Status done
Runda Arhiva educationala Marime 0.72 kb
#include <fstream>
#include <cmath>
using namespace std;

ifstream f("date.in");
ofstream g("date.out");

int *pr;
bool *ok;
/*
double pw10(int x){
    double p=1;
    while(x--)
        p*=10;
    return p;
}

void fc_a(int n){
    int x=0,lim=sqrt(pw10(n))+800;
    for(int i=1;i<=n;i++)
        x=x*10+9;
    for(int i=2;i<=lim;i++)
        if(!ok[i]){

        }

    return 0;
}
*/
int main()
{
    int n;
    char ch;

    f>>ch>>n;
    pr=new int[int(sqrt(pw10(n)))+1000];
    ok=new bool[int(sqrt(pw10(n)))+1000];

    g<<pr[0];
/*
    switch(ch){
        case 'a': fc_a(n); return 0;
        case 'b': fc_b(n); return 0;
        case 'c': fc_c(n); return 0;
        case 'd': fc_d(n); return 0;
    }*/

    return 0;
}