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

RGB7301 - Ахмад орны цифр

Өгөгдсөн натурал тооны ахмад орны цифрийг ол. 

Input

n натурал тоо өгөгдөнө. (n<=10^6).

Output

Ахмад орны цифр болох нэг цифр байна.

Example

Input:
1234
Output:
1

Нэмсэн:Bataa
Огноо:2013-01-08
Хугацааны хязгаарлалт: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-11-11 03:13:16
https://www.youtube.com/watch?v=dQw4w9WgXcQ
2022-11-11 03:13:12
https://www.youtube.com/watch?v=dQw4w9WgXcQ
2022-11-11 03:13:09
https://www.youtube.com/watch?v=dQw4w9WgXcQ
2022-10-30 16:47:04
#include<stdio.h>
#include<math.h>

int main(){
int n,a;
scanf("%d",&n);
if(pow(10,6)>=n){
while(n>0){
a=n%10;
n=n/10;
}
printf("%d",a);
}
}



Last edit: 2022-10-30 17:22:57
2022-10-06 04:36:12
yu bn
2022-09-24 07:41:10
tf?
2022-07-04 06:40:13
orgil haan yuvaa boldooo
2022-07-04 06:29:58
oo shaa shaa
2022-06-08 08:01:45
e<3
2022-05-25 07:40:28
orgil bnu
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.