Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
RGB8006 - Тоолох |
Тоон дарааллыг дараалан ижил тоо ортол оруулав. Дараалал дахь тоонуудыг тоол.
Input
Нэг мөрөнд тоонууд зайгаар тусгаарлагдан өгөгдөнө. / Integer төрөл /
Output
Тоонуудын тоо. / Сүүлийн хоёр ижил тоог оруулаад /
Example
Input:
3 5 24 4 3 5 3 5 3 5 5
Output:
11
Нэмсэн: | Bataa |
Огноо: | 2010-01-05 |
Хугацааны хязгаарлалт: | 1s |
Эх кодын хэмжээний хязгаарлалт: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Програмчлалын хэлүүд: | ADA95 ASM32 ASM64 BASH BF C CSHARP C++ 4.3.2 CPP CPP14 C99 CLPS LISP sbcl LISP clisp D ERL FORTRAN HASK ICON ICK JAVA JS-RHINO LUA NEM NICE OCAML PAS-GPC PAS-FPC PERL PHP PIKE PRLG-swi PYTHON RUBY SCALA SCM guile SCM qobi ST TCL TEXT WHITESPACE |
hide comments
|
|||||
2019-03-09 13:21:28
#include <bits/stdc++.h> using namespace std; int main() { int a,n,k,t=1; cin>>a; k=a; label: k=n; cin>>n; t++; if(k!=n) goto label; cout<<t; } ene yagadajillahgvi bn |
|||||
2018-03-28 07:06:34
#include<stdlib.h> #include<stdio.h> #include<math.h> main() { int a,b,s=0,d=0; scanf("%d",&a); b=a; s++; while(d==0) { scanf("%d",&a); s++; if(b==a)d++; else b=a; } printf("%d",s); } |
|||||
2014-03-12 07:39:12 Мөнх
Notes: 1. Don't post any source code here!!! |
|||||
2013-09-16 11:32:22 batorshih
urchger duh |
|||||
2013-04-17 02:16:39 LearnerMN
Yoo aldaj ntr :-d |
|||||
2012-10-03 10:08:29 Mendsaikhan
ene bodlogiig bodson hun baina uu? |
|||||
2011-11-27 13:11:38 alaanka
oilgoh ym alga |
|||||
2011-03-27 03:58:30 a_ch_love
oilgd bx yum alga l bna sh de kikiki |
|||||
2011-03-27 03:14:05 shinee
#include<stdio.h> int p,s,n; main() {p=0; s=0; while(p==0) {scanf("%d",&n); s=s+1; if(n==n-1) p=1; } printf("%d",s); scanf("%d"); } |
|||||
2011-03-27 03:13:42 shinee
3 5 24 4 3 5 3 5 3 5 5 |