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

RGB7305 - Цифрийн давталт

Өгөгдсөн тоонд өгөгдсөн цифр хэдэн удаа орсныг ол.

Input

Нэг мөрөнд бүхэл тоо ба цифр зайгаар тусгаарлагдан өгөгдөнө. 

Output

Цифр хэдэн удаа орсон тоо.

Example

Input:
23453 3

Output:
2 

Нэмсэн: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-02-24 09:01:32
hi guys
2024-01-20 08:27:14


Last edit: 2024-01-20 08:31:52
2023-10-28 20:33:21
#include <stdio.h>
int main(){
int a,b,d=0;
scanf("%d%d",&a,&b);
for (int i=a; i>0; i/=10){
int c=i%10;
if (c==b){
d+=1;
}
}
printf("%d",d);
}
2023-08-22 05:27:00
#include <iostream>
using namespace std;

int main() {
int a,b=0,n,i;
cin >> n >> a;
while (n>0){
if(n%10==a)
b=b+1;
n/=10;
}
cout<< b ;
}
2023-08-22 05:26:06
#include <iostream>
using namespace std;

int main() {
int n,i,j;
cin>>n;

for(i=1; i<=n; i ++){

for(j=n; j>=i; j --){
cout<<j<<" ";
}
cout<<endl;
}
return 0;
}
2023-07-12 12:22:23
#include <iostream>
using namespace std;

int main() {
int a,i,n,pp=0;
cin>>a>>n;
while(a>0){
if(a%10==n)
pp=pp+1;
a=a/10;
}
cout<<pp;
}
2023-03-06 04:04:02
bilguun huul hehehe
2023-03-04 06:43:27
t1 nigga ve
2023-03-04 06:39:54
bbc

Last edit: 2023-03-04 06:53:51
2023-02-28 04:19:02
Yahu yesh

© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.