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

ABR0067G - Эхний цифр

n натурал тоо өгөгдөв (n≤100). Эхний цифрийг нь ол.

Input

n натурал тоо өгөгдөнө

Output

өгөгдсөн тооны эхний цифрийг хэвлэнэ

Example

Input:
56

Output:
5

Нэмсэн:sw40
Огноо:2007-10-26
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:Бүгд дараах хэлүүдээс бусад: ASM32-GCC MAWK BC C-CLANG NCSHARP CPP14 CPP14-CLANG COBOL COFFEE D-CLANG D-DMD DART ELIXIR ERL FANTOM FORTH GOSU GRV JS-RHINO JS-MONKEY JULIA KTLN NIM NODEJS OBJC OBJC-CLANG OCT PERL6 PICO PROLOG PYPY PYPY3 PY_NBC R RACKET RUST CHICKEN SQLITE SWIFT UNLAMBDA VB.NET
Эх сурвалж:Абрамов С. А.

hide comments
2020-09-22 14:35:53
import math
x = input()
x = int(x)
if x >= 10 and x <100 :
print(int(x / 10))
else :
if x < 10 :
print( x )
else :
if ( x == 100) :
print ( 1 )
else :
print()
2020-09-16 04:34:15


Last edit: 2020-09-16 04:35:28
2013-04-21 09:06:50 buyandalai byambaa
#include <stdio.h>
#include <stdlib.h>
main(){
int a,n,n1;
scanf("%d", &n);
n1=n;
if (n==100)
a=1;
else
if ((n>=10) && (n<=990)) a=n/10;
else a=n1;
printf("%d", a);
system("pause");
return 0;
}
2013-01-26 09:23:03 ConquesT/T
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
main(){
int n;
scanf("%d", &n);
while(n>9){
n=n/10;
}
printf("%d", n);
system("pause");
return 0;
}

Last edit: 2013-01-26 09:24:03
2012-10-10 14:44:46 Tso .
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
main(){
int n;
scanf("%d", &n);
while(n>9){
n=n/10;
}
printf("%d", n);
system("pause");
return 0;
}
2012-04-11 08:04:31 tomorbaatar
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
main(){
int n;
scanf("%d", &n);
while(n > 9){
n = n/10;
}
printf("%d", n);
system("pause");
return 0;
}
2011-05-13 15:25:51 brutallmetal
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
main(){
int n;
scanf("%d", &n);
while(n > 9){
n = n/10;
}
printf("%d", n);
system("pause");
return 0;
}
2011-01-09 05:50:32 khasa
zl
2010-12-29 11:12:20 dsn
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main () {
int a;
scanf("%d", &a);
if(a==100) printf("1\n");
else printf(0);
{
if(a>9) printf("%d", a/10);
else printf(0) ;
}
system("pause");
return 0;
}
zuvl baih yostoidoo
2010-12-10 20:16:35 I 7eVeN


Last edit: 2010-12-10 20:16:45
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.