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.|

RGB7190 - Тоо сэргээх

Сурагч 3 оронтой бичихдээ 1 тэмдэгт /цифр биш/ илүү биччихжээ. Илүү бичсэн тэмдэгтийг хасч уг оронтой тооны квадратыг ол.

Input

Нэг мөрөнд 4 тэмдэгт зайгүйгээр залгагдан өгөгдөнө. 3 нь цифр, 1 нь цифр биш.

Output

3 оронтой тооны квадрат.

Example

Input:
12r3

Output:
15129

Нэмсэн:Bataa
Огноо:2013-02-06
Хугацааны хязгаарлалт: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-03-31 06:08:00
zail


Last edit: 2022-03-31 06:09:19
2022-03-31 06:05:25
azaa sugad zoriulav
2022-03-31 06:04:30
Э. Содномдорж
#include<bits/stdc++.h>
int main(){
int n,s;
scanf("%d",&n);
n<=50;
s=(n+1)*(n+2)*(n+3)*(n+4)*(n+5)/120;
printf("%d",s);
}
2022-02-07 16:50:33
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);

String str;

str = input.next();

char [] x= new char [str.length()];
int [] c = new int[str.length()];
int [] z = new int[str.length()];
int n=0, a=0, b=1, d=0, a1=0;

for (int i=0; i<str.length(); i++) {
x[i] = str.charAt(i);
}

for (int i=0; i<str.length(); i++) {
c[i] = x[i]-48;
if (c[i] < 10) {
z[d] = c[i];
a++;
a1++;
d++;
}
}

while (a > 1) {
b = b*10;
a--;
}

for (int i=0; i<a1; i++) {
z[i] = z[i]*b;
n = n+z[i];
b = b/10;
}

System.out.print(n*n);

input.close();
}
}

// Fb: V Bat Ireedui ^_^
2022-01-22 15:08:42
#include<bits/stdc++.h>
#include<math.h>
using namespace std;
int main(){
int ascii1,ascii2,ascii3,ascii4,n=0;
char ch1,ch2,ch3,ch4;
cin>>ch1>>ch2>>ch3>>ch4;
ascii1=ch1;
ascii2=ch2;
ascii3=ch3;
ascii4=ch4;
if(ascii1>=48 & ascii1<=57){
n=n*10+ch1-'0';

}
if(ascii2>=48 & ascii2<=57){
n=n*10+ch2-'0';

}
if(ascii3>=48 & ascii3<=57){
n=n*10+ch3-'0';


}
if(ascii4>=48 & ascii4<=57){
n=n*10+ch4-'0';

}
n=pow(n,2);
cout<<n;
return 0;
}
2019-11-30 05:17:09
2019-11-20 12:19:05
#include <cstdio>
int main(){
int k=0;
char a,b,c,d;
scanf("%c%c%c%c", &a,&b,&c,&d);
if(a>='0' && a<='9'){
k*=10;
k+=a-'0';
}
if(b>='0'&& b<='9'){
k*=10;
k+=b-'0';
}
if(c>='0' && c<='9'){
k*=10;
k+=c-'0';
}
if (d >='0' && d<='9'){
k*=10;
k+=d-'0';
}
printf("%d",k*k);
}

2019-11-10 06:07:54
#include<cstdio>
#include<cstring>
int main()
{
int q;
long long a = 0;
char s[100];
scanf("%s" , &s);
q = strlen(s);
for(int i = 0 ; i < q ; i++){
if(s[i] < 65) a = a * 10 + (s[i] - '0');
}
printf("%lld" , a * a);
}
2019-11-10 06:07:05
huoohughhhbvhbhgxsfnfhxcghnmxbvsx
2019-11-10 05:54:21
ez
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.