Pagini recente » Cod sursa (job #927865) | Cod sursa (job #993993) | Cod sursa (job #2329923) | Cod sursa (job #2574822) | Cod sursa (job #990105)
Cod sursa(job #990105)
#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;
}