Problem hidden
|This problem was hidden by Editorial Board member probably because it has incorrect language|version or invalid test data, or description of the problem is not clear.|

RGB7318 - Залгаад квадрат зэрэг

Өгөгдсөн натурал тооны бичиглэлийн эх адагт нь 1-ийн цифр залгаж бичээд квадрат зэрэгт дэвшүүл.

Input

Натурал тоо өгөгдөнө.

Output

Натурал тоо

Example

Input :

23

Output:

1515361


Нэмсэн:Bataa
Огноо:2013-01-14
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:ADA95 ASM32 BASH BF C NCSHARP CSHARP C++ 4.3.2 CPP C99 CLPS LISP sbcl LISP clisp D ERL FORTRAN HASK ICON ICK JAVA JS-RHINO JULIA LUA NEM NICE OCAML PAS-GPC PAS-FPC PERL PHP PIKE PRLG-swi PYTHON PYPY3 PYTHON3 RUBY SCALA SCM guile ST TCL WHITESPACE

hide comments
2023-12-04 09:02:52
#include<stdio.h>
main(){
int a,b,i,c;
scanf("%d", &a);
i=1;
while(i<=a){
if((a/i)<10 && (a/i)>0){
a=(i*10+a)*10+1;
printf("%d", a*a);
return 0;
}
else{
i=i*10;
}
}
}
2023-11-27 08:07:27
#include<bits/stdc++.h>
#include <cmath>
#include <iostream>
using namespace std;
int main(){
long long a,b,c,d,s,n,r,t,j,l,h,i,m;
cin>>a;
a=a*10+1;
b=1;
while(a>b)
{
b=b*10;
}
a=a+b;
cout<<a*a;
}



Last edit: 2023-11-27 08:09:29
2023-09-15 13:24:19
#include <iostream>
using namespace std;

int main() {
int a, b, c, k, n, d;
cin>>a;
n=0;
d=1;
c=a;
k=2;
while (c!=0) {
c=c/10;
n=n+1;
}
for (int i=1; i<=n; i++) {
d=d*10;
}
a=a+d;
a=(a*10)+1;
a=a*a;
cout<<a;

return 0;
}
nahh bro i solved it. the answer is correct, dis system is broken.
2023-08-19 23:43:32
bruhhhh
2023-07-27 16:12:33
C++ deer buruu hariult geed yroosoo bolohgui bn
2023-07-25 08:20:16
c++ deer aldaa zaaj bn
2023-07-17 09:52:51
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main(){
long long int a,b,s=1;
scanf("%lld",&a);
b=a;
while(a>0){
a=a/10;
s=s*10;
}
b=(b+s)*10+1;
b=b*b;
printf("%lld",b);
return 0;
}
2023-03-05 11:14:40
#include<stdio.h>
#include<math.h>
main (){
int a,b,c,d,n,i,p,s,g,m;
scanf("%d",&b);
a=b*10+1;
p=0;
for(i=a;i>0;i=i/10){
s=i%10;
s=1;
p=p+s;
} s=pow(10, p);
g=s+a;
m=pow(g, 2);

printf("%d",m);
return 0;
}
2022-10-21 12:18:41
#include<stdio.h>
int main(){
long int n,b,s=1;
scanf("%ld",&n);
b=n;
while(n>0){
n=n/10;
s=s*10;
}
b=(b+s)*10+1;
b=b*b;
printf("%ld",b);
}
// Akumu 205
2022-09-08 11:48:09 Mumi
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main(){
long long int a,b,s=1;
scanf("%lld",&a);
b=a;
while(a>0){
a=a/10;
s=s*10;
}
b=(b+s)*10+1;
b=b*b;
printf("%lld",b);
return 0;
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.