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-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;
}
2022-06-26 13:07:35
#include<bits/stdc++.h>
using namespace std;
int main()
{
int num1, k=0, j=1, n=1, l;
cin>>num1;
num1=num1*10+1;
l=num1;
while(num1!=0)
{
num1=num1/10;
k++;
}
while(j<=k)
{
n=n*10;
j++;
}
l=l+n;
cout<<l*l;
}
Ганзориг Энгүүнбаяр
2022-02-23 11:25:41
#include<iostream>
#include<sstream>

using namespace std;
int main() {

long long a[100], n, i, j, s, m;

cin >>n;
s=1;
i=0;
while(n>0){
a[i]=n%10;
n=n/10;
i++;
}
i=i-1;
for(j=i;j>=0;j--){
s=s*10+a[j];
}
s=s*10+1;
s=s*s;
cout << s;
return 0;
}
2022-01-13 16:49:34
import java.util.Scanner;
public class main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = 1;
int k=a;
for(b=1;k>=10;b++) {
k=k/10;
} int c=10;
while (b>1) {
c=c*10;
b--;
} a=(a+c)*10+1;
int y=a*a;
System.out.println(a);
System.out.println(y);
}} zov ll baigaan bish uu
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.