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
2024-04-25 14:54:26
yoooooooooooo bodood ogoochde
2024-03-27 13:51:59
#include<stdio.h>
int main() {

int a;
scanf("%d",&a);
while(a>9){
a=a/10;
}
printf("%d",a);

return 0;
} huul suguud
2024-03-26 12:08:19
..

Last edit: 2024-03-27 04:39:43
2024-03-06 10:59:12
#include<stdio.h>
#include<math.h>
int main(){
int n,i,a,b;
scanf("%d",&n);
a=n;
while(n>0){
n=n/10;
i++;
}
b=a/pow(10,i-1);
printf("%d",b);
}


2024-03-05 11:33:46
xxl poker hair medhu tataad toglo mongoo ol
2024-03-04 05:08:34
huts
2024-03-04 03:07:54
eee2 huulhaa boly
2024-02-21 13:41:27
#include <bits/stdc++.h>
using namespace std;
int main()
{
string s;
cin >> s;
cout << s[0];
}
2024-02-20 07:51:43
#include<bits/stdc++.h>
using namespace std;
int main() tsaashaa uursdu hiitsge
2024-02-02 03:34:58
TSETSENGUA

Last edit: 2024-02-02 03:38:40
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.