Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
ABR0086A - Оронгийн тоо |
n натурал тоо өгөгдөв. n тоо хэдэн цифртэй вэ?
Input
n натурал тоо өгөгдөнө
Output
n тооны цифрүүдийн тоог хэвлэнэ (n<2000000000)
Example
Input: 1990 Output: 4
Нэмсэн: | sw40 |
Огноо: | 2007-11-09 |
Хугацааны хязгаарлалт: | 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
|
|||||
2023-03-16 09:10:44
hii |
|||||
2013-09-23 16:02:58 enkhbaysgalan
#include <stdio.h> #include <stdlib.h> main() { int n, c=0; scanf("%d", &n); while(n>0){ c++; n=n/10; } printf("%d", c); system("pause"); return 0; } |
|||||
2013-01-30 08:31:43 M.Enkhbileg
C++ хэл дээр бичвэл #include <iostream> #include <stdlib.h> using namespace std; main() { int a, t, c=0, temp; cin >> a; while(1) { t=a/10; temp = t; a = temp; c++; if(t==0) break; } cout << c; system("PAUSE"); return 0; } Last edit: 2013-02-04 06:23:08 |
|||||
2012-12-17 12:22:44 Bayartsetseg
kod ni dev c der ajillad bga hernee hurbuuleltin aldaa ged bhin yaj hurbulne ged bgn bol |
|||||
2012-12-17 12:21:10 Bayartsetseg
#include<stdio.h> #include<conio.h> int main() { int n,t=0; scanf("%d",&n); while(n!=0){n/=10; t++;} printf("%d",t); getch(); } Last edit: 2012-12-17 12:21:39 |
|||||
2012-10-26 12:27:00 Tso .
#include <stdio.h> main(){ int n, c=0; scanf("%d", &n); while(n>0){ c++; n=n/10; } printf("%d", c); } Last edit: 2012-11-24 03:28:53 |
|||||
2012-03-20 12:23:15 Nuudelchin
C++ hel dr bodoj chadah hun bn u? \ |
|||||
2011-10-13 01:02:32 o.tsolmonbaatar
энэ бодлогын тайлбар нь хэрэгтэй байна |
|||||
2011-01-02 04:19:37 dsn
#include<stdio.h> #include<string.h> #include<stdlib.h> main() { long p; char a[2000000]; scanf("%s",&a); printf("%ld",strlen(a)); system("pause") ; } |
|||||
2010-09-13 13:56:50 sw10d001
#include<stdio.h> #include<string.h> main() { long p; char a[2000000]; scanf("%s",&a); printf("%ld",strlen(a)); } Last edit: 2010-09-13 13:57:58 |