You are on page 1of 1

#include <iostream>

#include <fstream>
#include<cmath>
using namespace std;

int N,C,K,M,T;

int main()
{ ifstream in("patrate.in");
ofstream out("patrate.out");
in>>C;
if(C==1)
{
in>>M;
out<<8*M<<endl;
}
else{
in>>N;
T=sqrt(N);
if(T%2)T++;
out<<T/2<<endl;
}
return 0;
}

You might also like