Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
RGB7304 - Сондгой цифрүүдийн тоо |
Өгөгдсөн тоон дахь сондгой цифрүүдийн тоог ол.
Input
Бүхэл тоо өгөгдөнө.
Output
Сондгой цифрүүдийн тоо.
Example
Input: 23457 Output: 3
Нэмсэн: | Bataa |
Огноо: | 2013-01-09 |
Хугацааны хязгаарлалт: | 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-29 03:56:11
You are my sunshine My only sunshine you make me happy |
|||||||||||
2024-04-29 03:56:10
You are my sunshine My only sunshine you make me happy |
|||||||||||
2024-04-29 03:56:10
You are my sunshine My only sunshine you make me happy |
|||||||||||
2024-04-29 03:56:10
You are my sunshine My only sunshine you make me happy |
|||||||||||
2024-04-29 03:56:10
You are my sunshine My only sunshine you make me happy |
|||||||||||
2024-04-29 03:56:09
You are my sunshine My only sunshine you make me happy |
|||||||||||
2024-04-29 03:56:09
You are my sunshine My only sunshine you make me happy |
|||||||||||
2024-03-13 03:16:19
using namespace std; int h(int n,int m){ int ans,i,s; for(i=1;i<=n;i++){ if(n%i==0){ if(m%i==0){ s=i; } } } ans=s; } int main() { int n,m,s,i; cin>>n>>m; s=h(n,m); cout<<s; } |
|||||||||||
2024-02-20 04:46:48
ni. g e r s Last edit: 2024-02-20 04:47:40 |
|||||||||||
2023-10-18 02:12:46
#include<stdio.h> main(){ int a,b,c,d,s,i; scanf("%d", &a); d=0; i=1; while(i<=a){ s=a/i; c=s%10; if(c%2>0){ d=d+1; i=i*10; } else{ d=d+0; i=i*10; } } printf("%d", d); } |