Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
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-11-26 23:23:09
#include <iostream> using namespace std; int main() { int n,s=0,t=0,x; cin >> n >> x; while(n>0){ s=n%10; if(s==x){ t++; } n/=10; } cout<<t; //ryuu bol gci } |
|||||||||
2024-11-21 12:16:36
_______________ | _________ | | | | | | | Window | | | |_________| | |_______________| | | | | __|_____|__ |
|||||||||
2024-11-21 12:13:58
⣀⣀⣀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡀⠀⠀⠀⠀⢠⠊⠁⠀⠀⠈⠉⠒⢄⠀⠀⠀⠀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣷⣄⡀⠀⣴⡿⠛⢶⣄⠀⠀⣠⡴⠾⢧⠀⢀⣼⣿⠆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠻⣿⣿⡿⣿⠛⣿⡧⠸⣿⣿⡷⡶⠠⠏⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⡟⠉⠛⢛⣚⡉⠀⠀⠈⠛⠋⠁⠸⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣦⣤⣴⣿⠿⣷⣤⡤⠤⠖⠣⡀⠀⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⣁⣿⡿⢦⣀⠀⠀⠀⠀⠀⠀⠈⠓⢿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣴⣿⣿⣿⣿⣿⣿⠛⠛⠉⠉⠉⠀⠀⠀⠘⢤⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣼⣿⣿⣿⣿⡻⣿⠿⠛⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠑⠲⠦⠤⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣶⣿⣿⣿⣿⣿⣿⣿⣿⣶⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠑⠢⡀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⢀⣠⠴⠒⠓⠛⢻⣿⡿⠿⠛⠉⠻⢿⣿⣿⠿⠿⠛⠓⠋⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⢆⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⢀⣶⠏⣼⠀⠀⠀⠀⠈⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢧⠀⠀⠀⠀ ⠀⠀⠀⠀⣠⣿⣯⡼⠈⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢈⡇⠀⠀⠀ ⠀⠀⠀⣰⣿⣿⣿⣿⣷⣶⣾⣇⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣿⣿⣦⣤⣤⡠⠀⣤⣿⣧⠀⠀⠀ ⠀⠀⠀⣿⣿⣿⡿⢳⠶⢉⡿⣿⣜⡖⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⣾⣼⣄⡀⠀⠀⠀⠀⠀⢀⣤⣶⣿⣿⡿⡟⠫⡭⠽⣾⣟⡋⠀⠀⠀⠀ ⠀⣀⣴⣿⣿⠿⠟⠁⣠⠞⢠⣿⣿⣿⣿⣧⣄⣀⣀⠀⠀⣀⣤⡶⢿⣿⣿⣿⣶⣀⣀⣤⣾⣿⣿⣿⣿⣿⠁⠙⣆⠀⠀⢾⣿⣿⣦⡀⠀⠀ ⣿⣿⣿⡿⣿⣷⣠⡾⠃⢠⣿⣿⠿⣿⣿⣿⣿⣿⣿⣷⣾⣿⣿⠅⠺⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡾⣆⠈⢷⡄⣠⣾⣿⣿⣿⣷⣄ ⡿⣿⣿⣿⣎⣿⡿⠀⣰⣿⣿⣿⣷⡈⢻⣿⣿⣿⣿⣿⣟⡉⠀⠀⠀⠈⠉⠛⢿⣿⣿⣿⣿⣿⣿⠟⣱⣾⣿⣿⣇⠀⢹⣿⢏⣾⣿⣿⣿⡟ ⣷⣿⣿⡿⢏⣿⡇⢀⣿⣿⣿⣿⣿⡛⠀⠈⢻⣿⣿⠟⠛⠛⠁⠀⠀⠀⠀⠀⠉⠹⣿⣿⣿⡏⠁⠀⢿⣿⣿⣿⣿⡇⠘⣿⣼⢿⣿⣿⣾⣿ ⢹⣿⡿⣿⣿⡿⢡⠞⠁⠽⢿⣿⡇⠀⠀⢠⣞⢿⣄⣤⣀⣀⠀⠀⢸⣀⠀⠀⠀⡀⠈⠉⠙⢧⡀⠀⠀⣿⣿⠟⠙⠻⣆⠻⣿⣿⣿⣿⣿⠋ ⢸⣿⣿⣿⣿⣧⣿⣦⣤⣀⣸⣿⠁⠀⢰⠿⡿⣿⡿⠿⠿⠿⠷⣄⠈⠿⠛⠻⠿⢿⣶⣄⣀⣾⣿⡀⠀⣻⣷⣀⣠⣴⣿⣆⣿⣿⣿⣿⣿⠀ ⣿⣿⣿⣿⣿⣿⡿⠋⠈⠉⠉⠃⢸⣶⣾⠀⠀⣹⣇⠀⣆⠀⠀⠀⣶⠀⠀⠀⣰⢀⢿⠉⠉⠉⠙⣷⢾⡟⠛⠉⠉⠈⠻⣿⣿⣿⣿⣿⣿⠀ ⢸⣿⣻⣿⣿⣯⣀⡀⠀⠀⢀⣠⢘⣿⣿⣶⠀⢻⣿⣿⣿⣧⣀⣀⣿⣦⣀⡐⢓⣺⣿⠀⠀⠀⣵⡆⢸⡷⣄⣀⣐⢀⣀⣸⣿⣿⣿⣿⡇⠀ ⣼⣿⣛⣿⣿⣿⠉⠉⠉⠉⠉⠀⣸⣿⣿⡇⠀⢲⣿⠉⠉⠉⠳⣴⠋⠙⠻⣿⣿⣿⡇⠀⠀⣿⣿⠇⠀⣇⠀⠀⠉⠉⠉⢹⣿⣿⣿⣿⡇⠀ ⠉⠛⢿⣿⡿⠿⡦⠀⠀⠀⠀⠀⣿⣯⣽⣇⠐⣿⣿⣿⢷⠦⡄⠀⠀⠀⢠⣿⣿⠟⠁⠀⣰⣿⡟⠀⠀⠘⢧⠲⠤⠤⠴⠿⠿⣿⣿⣿⡇⠀ what is thad |
|||||||||
2024-11-19 01:58:50
bnaa uu bagsh |
|||||||||
2024-11-19 01:46:11
helpp mee hahahhaah |
|||||||||
2024-11-18 08:31:04
https://www.hackerrank.com/contests/informatics-nmct-challenge/challenges |
|||||||||
2024-10-21 07:09:20
bnu sugaa |
|||||||||
2024-06-05 04:20:50
MEOW NIG- |
|||||||||
2024-02-24 09:01:32
hi guys |
|||||||||
2024-01-20 08:27:14
Last edit: 2024-01-20 08:31:52 |