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
2022-01-13 16:48:35
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
2022-01-10 16:48:58
#include<stdio.h>
int main()
{
int long long a,b,c=100,n;
scanf("%lld",&a);
b=a*10+1;
n=a;
while(n>9)
{
n=n/10;
c=c*10;
}
printf("%lld",(c+b)*(c+b));


}
ooriiho neriig bicih estoi u hahaah
2021-11-28 04:42:19
#include<cstdio>
#include <cmath>
int main (){
long long int a,b=0;
long long int k;
scanf("%lld",&a);
a=abs(a);
if(a==0) a=101;
else{
a=a*10+1;
while(a!=0){
b=b*10+a%10;
a=a/10;
}
b=b*10+1;
while(b!=0){
a=a*10+b%10;
b=b/10;
}
}
k=a*a;
printf("%lld",k);
} ez
2021-11-09 10:46:24
n = int(input())
s = "1" + str(n) + "1"
print(int(s) ** 2) lol ez as fuck in python
2021-11-09 10:46:23
n = int(input())
s = "1" + str(n) + "1"
print(int(s) ** 2) lol ez as fuck in python
2021-10-20 12:27:52
shutej ydi
2020-12-26 09:11:58
#include <bits/stdc++.h>
using namespace std;
long long i, j, n, a, b,c,d, l,ll,r, s, t, k, m, xh, x, x1, y,z;
string p,q;
int main() {
cin>>a;
a=a*10+1;
b=1;
while (a>b){
b=b*10;
}
a=a+b;
cout<<a*a;
}agaan duu nar namaig shutej amidar
2020-11-19 09:55:01
#include<stdio.h>
int main(){
long n,d=1,a=0;
scanf("%d",&n);
a=n;
d=10;
while(n>9){
n=n/10;
d=d*10;
}
d=d*10;
a=a*10+1+d;
printf("%d", a*a);
return 0;
}

Last edit: 2020-11-19 09:56:00
2020-11-15 05:02:40
n too ni int bish long baih yostoi yum bn shuu.
2020-10-30 02:13:08
#include<iostream>
using namespace std;
int main(){
long long a,s=0,t=1,m=0;
cin>>a;
s=a*10+1;
while(a>0){
a=a/10;
t=t*10;
}
t=t*10+s;
m=t*t;
cout<<m;
return 0;
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.