#include <bits/stdc++.h>
using namespace std;
main()
{
double n;
while(cin>>n)
{
if(n==0)
break;
double ans = round(pow(n, 1./3.));
double ans1=ans*ans*ans;
if(ans1==n)
{
printf("Special\n");
}
else
printf("Ordinary\n");
}
}
OR
#include <bits/stdc++.h>
using namespace std;
main()
{
long n;
while(cin>>n)
{
if(n==0)
break;
double ans = round(pow(n, 1./3.));
long ans1=ans*ans*ans;
if(ans1==n)
{
printf("Special\n");
}
else
printf("Ordinary\n");
}
}
using namespace std;
main()
{
double n;
while(cin>>n)
{
if(n==0)
break;
double ans = round(pow(n, 1./3.));
double ans1=ans*ans*ans;
if(ans1==n)
{
printf("Special\n");
}
else
printf("Ordinary\n");
}
}
OR
#include <bits/stdc++.h>
using namespace std;
main()
{
long n;
while(cin>>n)
{
if(n==0)
break;
double ans = round(pow(n, 1./3.));
long ans1=ans*ans*ans;
if(ans1==n)
{
printf("Special\n");
}
else
printf("Ordinary\n");
}
}
কোন মন্তব্য নেই:
একটি মন্তব্য পোস্ট করুন