Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
RGB7303 - Тэгш цифрүүдийн нийлбэр |
Өгөгдсөн тоон дахь тэгш цифрүүдийн нийлбэрийг ол.
Input
Бүхэл тоо өгөгдөнө.
Output
Тэгш цифрүүдийн нийлбэр.
Example
Input: 34567 Output: 10
Нэмсэн: | 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-05-01 07:53:13
1. Don't post any source code here.| 2. Please be careful, leave short comments only. Don't spam here.| 3. For more discussion (hints, ideas, solutions) please visit our forum.| 4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).| |
||||||||||||||
2024-04-29 07:48:52
\______________/ __/__|______|__\__ /⭕⭕_______⭕⭕\ |__/__GTR-R34__\__| \©©__|_|_|_|_|__©©/ |
||||||||||||||
2024-04-29 07:46:25
stop talking Last edit: 2024-04-29 07:49:12 |
||||||||||||||
2024-04-29 07:46:25
why are you huulah Last edit: 2024-04-29 07:49:45 |
||||||||||||||
2024-01-09 09:53:57
⠀⠀⠀⣴⣾⣿⣿⣶⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⢸⣿⣿⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠈⢿⣿⣿⣿⣿⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠊⣉⣩⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⣼⣿⣿⣿⣷⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⢀⣼⣿⣿⣿⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⢀⣾⣿⣿⣿⣿⣿⣿⣷⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⢠⣾⣿⣿⠉⣿⣿⣿⣿⣿⡄⠀⢀⣠⣤⣤⣀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠙⣿⣿⣧⣿⣿⣿⣿⣿⡇⢠⣿⣿⣿⣿⣿⣧⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠈⠻⣿⣿⣿⣿⣿⣿⣷⠸⣿⣿⣿⣿⣿⡿⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠘⠿⢿⣿⣿⣿⣿⡄⠙⠻⠿⠿⠛⠁⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⡟⣩⣝⢿⠀⠀⣠⣶⣶⣦⡀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⣷⡝⣿⣦⣠⣾⣿⣿⣿⣿⣷⡀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⣿⣿⣮⢻⣿⠟⣿⣿⣿⣿⣿⣷⡀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⡇⠀⠀⠻⠿⠻⣿⣿⣿⣿⣦⡀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⢰⣿⣿⣿⠇⠀⠀⠀⠀⠀⠘⣿⣿⣿⣿⣿⡆⠀⠀ ⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⠀⠀⠀⠀⠀⠀⣠⣾⣿⣿⣿⣿⠇⠀⠀ ⠀⠀⠀⠀⠀⠀⢸⣿⣿⡿⠀⠀⠀⢀⣴⣿⣿⣿⣿⣟⣋⣁⣀⣀⠀ ⠀⠀⠀⠀⠀⠀⠹⣿⣿⠇⠀⠀⠀⠸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠇ |
||||||||||||||
2024-01-09 09:52:25
https://www.youtube.com/watch?v=hxOApe1P9dM |
||||||||||||||
2024-01-09 09:52:18
https://youtu.be/_QMEy8SY2OY?si=XJEKZ7TebDU0UGMY |
||||||||||||||
2024-01-09 09:50:37
https://www.youtube.com/watch?v=IxVfeoGXWVU |
||||||||||||||
2023-08-22 04:35:35
#include <iostream> using namespace std; int main() { int a,b,d,f,n,s,q,w,e,t,i,z=0; cin>>n; t=0; while(n!=0){ if(n%10%2==0){ t+=n%10; } n=n/10; } cout<<t; } |
||||||||||||||
2023-08-21 05:23:14
#include <cmath> #include <iostream> using namespace std; int main() { int m,n,i,a,b,c,d,e,f,g,x,y,j; string ug; cin>>n; for (i=0;i<n;i++){ cin>>ug; m=ug.size(); e=0; for(j=0;j<m;j++){ if(ug[j]=='0') e++; } x=0; y=0; for(j=0;j<m;j++){ if(ug[j]=='1'){ break; } else { x++; } } for(j=m-1;j>=0;j--){ if(ug[j]=='1'){ break; } else { y++; } } e=e-x-y; if(e<=0){ cout<<0<<endl; } else { cout<<e<<endl; } } } |