Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
RGB7300 - Оронгийн тоо |
Өгөгдсөн натурал тооны оронг тоол.
Input
Натурал тоо.
Output
Оронгийн тоо.
Example
Input: 12345 Output: 5
Нэмсэн: | Bataa |
Огноо: | 2013-01-25 |
Хугацааны хязгаарлалт: | 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-05-20 05:13:08
#include<bits/stdc++.h> using namespace std; int main(){ int a, b; cin>> a; b=a%10; cout<<b<<endl; return 0; } wtf ahahhaaahahah yun aimr2 yumnuud bichdiiiin |
|||||||||
2022-03-25 12:43:02
#include <iostream> using namespace std; int main() { int a,i=0; cin>>a; while (a>0) { a=a/10; i++; } cout<<i; } eheeheh |
|||||||||
2021-12-06 01:43:20
b=input() print(len(b)) |
|||||||||
2021-01-22 12:04:06
#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; int main() { long long a,d=0; cin >> a; while(a>0){ d++; a/=10 ; } cout << d << endl; return 0; } Zarim humuus arail ih uildel hiigeed bhin :) |
|||||||||
2020-05-03 13:11:55
onigoo yumaaa chi icheeech hishgeee |
|||||||||
2019-11-20 12:18:28
#include <cstdio> #include<cmath> int main(){ long long n; scanf("%lld",&n); int k=0; while(n>0){ k++; n/=10; } printf("%d",k); } |
|||||||||
2019-11-13 10:11:07
a = int(raw_input()) b = a i = 0 c = 0 while a > 0: b = a % 10 a = a / 10 i = i + 1 print i ymegod ;( |
|||||||||
2019-11-09 07:34:08
icheeche tsomoo |
|||||||||
2019-11-09 07:26:12
baas |
|||||||||
2019-11-09 06:32:50
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,d,e=0; cin>>a>>b>>c>>d; if(a%3==0) e=e+1; if(b%3==0) e=e+1; if(c%3==0) e=e+1; if(d%3==0) e=e+1; cout<<e; }ez4me hud hud bolohgui bj magadgui |