#AsuultSambar :

МОНГОЛ УЛС МАНДАН БАДРАГ!
It is currently Sep.23.17 6:22 pm

All times are UTC+09:00




Post new topic  Reply to topic  [ 19 posts ] 
Author Message
 Post subject: Biy daaltin bodlogo
PostPosted: Oct.11.13 7:18 pm 
Offline
Өсөх Ирээдvйтэй Гишvvн
Өсөх Ирээдvйтэй Гишvvн

Joined: Oct.11.13 7:00 pm
Posts: 9
Сайн байцгаана уу?
Code:
a1=1, a2=1 an+2=an+an+1
baih tsuwaag Фибоначийн цуваа гэж нэрлэдэг. Уг tsuwaanii 10000-d oir orshih gishuuniig dugaariin hamt oloh Algoritm, Programm zohio... ene bodlogiig bodoj tuslaach...


Top
   
 Post subject: Re: Biy daaltin bodlogo
PostPosted: Oct.11.13 7:25 pm 
Offline
Өсөх Ирээдvйтэй Гишvvн
Өсөх Ирээдvйтэй Гишvvн

Joined: Oct.11.13 7:00 pm
Posts: 9
Hudulguunii durem zurchsun mashiniig harsan 3 matematikchaas zamiin tsagdaa asuuhad
1-r matematikch: Zuwhun 2xon turliin tsifrees burdsen buguud ter 2 tegsh hemtei baisan gejee.
2-r matematikch: 2, 7, 11t huwaagdah too baisan..
3-r matematikch: Buh tsifriin niilber 30 baisan gej hariuljee..
Ug mashinii dgr oloh Algoritm, Programm zohio.... Enig bodod uguuch...


Top
   
 Post subject: Re: Biy daaltin bodlogo
PostPosted: Oct.11.13 7:27 pm 
Offline
Өсөх Ирээдvйтэй Гишvvн
Өсөх Ирээдvйтэй Гишvvн

Joined: Oct.11.13 7:00 pm
Posts: 9
n%m hurtelh 3-d uldegdelgui huwaagdah toonuudiin niilber oloh Algoritm, Programm zohio.. Eniig bodood uguuch..


Top
   
 Post subject: Re: Biy daaltin bodlogo
PostPosted: Oct.11.13 10:16 pm 
Offline
Өвөг Дээдсийн Сахиус Гишvvн
Өвөг Дээдсийн Сахиус Гишvvн
User avatar

Joined: May.20.12 12:52 am
Posts: 731
Yamr programchlaliin hel deer bodoj bgaa yum be, chamd bodoh arga heregtei yumu programchlaliin medleg dutagdaad bga yumu?
ehnii 2 niilber 3 dahi too boloh 1,1,2,3,5,8,13,21,34,55,89,144 daraallig helj bgan. programchlaliin hicheel bolohoor chi hyalbar guitsehgui arga hereggui, bodoh argachlal surch bval boloo. Chnii oloh n deh gishuun 10000 davsan bol ali iluu oir bgaag shalgana. 10000 davsan eshiig sahlgah daltalt ashigla. N deh gishuunee toolj yavna l gesen ug

ene tsibr deeree sain ajil gesen ug yum bhda a,b -oos burdsen 2, 7, 11 huvaagdah shinjtei ba niilber 30.

n%3-d huvaagaad l uldegdel-s hamaarch m hurtelh i=i+3 , s=s+i shalgaad oldoh bhaa.

_________________
everything


Top
   
 Post subject: Re: Biy daaltin bodlogo
PostPosted: Oct.12.13 4:58 pm 
Offline
Өсөх Ирээдvйтэй Гишvvн
Өсөх Ирээдvйтэй Гишvvн

Joined: Oct.11.13 7:00 pm
Posts: 9
Mongolhuub1 wrote:
Yamr programchlaliin hel deer bodoj bgaa yum be, chamd bodoh arga heregtei yumu programchlaliin medleg dutagdaad bga yumu?
ehnii 2 niilber 3 dahi too boloh 1,1,2,3,5,8,13,21,34,55,89,144 daraallig helj bgan. programchlaliin hicheel bolohoor chi hyalbar guitsehgui arga hereggui, bodoh argachlal surch bval boloo. Chnii oloh n deh gishuun 10000 davsan bol ali iluu oir bgaag shalgana. 10000 davsan eshiig sahlgah daltalt ashigla. N deh gishuunee toolj yavna l gesen ug

ene tsibr deeree sain ajil gesen ug yum bhda a,b -oos burdsen 2, 7, 11 huvaagdah shinjtei ba niilber 30.

n%3-d huvaagaad l uldegdel-s hamaarch m hurtelh i=i+3 , s=s+i shalgaad oldoh bhaa.


Top
   
 Post subject: Re: Biy daaltin bodlogo
PostPosted: Oct.12.13 5:04 pm 
Offline
Өсөх Ирээдvйтэй Гишvvн
Өсөх Ирээдvйтэй Гишvvн

Joined: Oct.11.13 7:00 pm
Posts: 9
Dev C++, ene deer uzej bgaa, Algoritm zohioh heregtei bnaa programmiig ni Algoritmee harj bgd zohiochih bh.. Chi Algoritmuudig ni zoihioj chadah bol tuslaach..


Top
   
 Post subject: Re: Biy daaltin bodlogo
PostPosted: Oct.13.13 8:20 pm 
Offline
Өвөг Дээдсийн Сахиус Гишvvн
Өвөг Дээдсийн Сахиус Гишvvн
User avatar

Joined: May.20.12 12:52 am
Posts: 731
block schema surj chadq yum bn.
amarhanaas ehelye.

1. n-m hurtelh 3 huvaagdah toonii niilber oloh.
d=n%3 (n-g 3 huvaagaad uldegdeliig d ugnu)
d=0 bol i=n
d=1 bol i=i+2
d=2 bol i=i+1
(m>i) bol s=s+i; i=i+3;
s- n-ees m hurtelh 3 huvaagdah toonii niilber anhnii utga s=0;
i - n-ees ehleed 3t huvaagdah too anhnii utga i=0;

_________________
everything


Top
   
 Post subject: Re: Biy daaltin bodlogo
PostPosted: Oct.13.13 8:28 pm 
Offline
Өвөг Дээдсийн Сахиус Гишvvн
Өвөг Дээдсийн Сахиус Гишvvн
User avatar

Joined: May.20.12 12:52 am
Posts: 731
2. Fibonacci -n 10000 oir gishuun dugaartai ni oloh.
a1 ni ehnii gishuun , a2 ni 2 dahi gishuun, a3 3 dahi gishuun
a3=a1+a2;
a1=a2;
a2=a3;
n=n+1;
(a3<10000) bol deerh davtaliig guitsetgene.
(a2-10000<10000-a1) bol a2 10000-d oir n deh gishuun
ugui bol a1 10000-d oir n-1 deh gishuun
deer do while ashiglahaar bichlee
n - F-n n deh gishuun anhnii utga n=2
anhnii utga a1=1 a2=1 a3=2

_________________
everything


Top
   
 Post subject: Re: Biy daaltin bodlogo
PostPosted: Oct.13.13 10:00 pm 
Offline
Өвөг Дээдсийн Сахиус Гишvvн
Өвөг Дээдсийн Сахиус Гишvvн
User avatar

Joined: May.20.12 12:52 am
Posts: 731
3. Durem zurchigchiin dugaar oloh

Ene ih hetsuu yum bn.amar argaar bodyo. mashin 4 orontoi.

1-t 2 tsifrees burdesen a,b
2-t 2 huvaagdah shinj tegsh too, 7 huvaagdah shinj 3 3n orongoor hasah nemeh temdegtei taslaj hoorond nemsen too 7-d huvaagdval ug too 7-d huvaagdana. 11t huvaagdah shinj tegsh ba sondgoi orngiin yalgavar 11-t huvaagdval ug too 11-d huvaagdana.
3 -t buh tsibriin niilber 30 baina.
x- ni auto mashinii dugaar x=1000

a[0]- 1000t-n oron
a[1]- 100t-n oron
a[3] negjiin oron

i=0; j=1;
k=0;
b[k]= bolomjit dugaaruud

a[0]=x/1000; a[1]=x/100; a[2]=x/10; a[3]=x%10; //aravt zuut negjiin oronguudaa olj bn

x<9999 bol x%2==0 uu // 9999 hureegui bol 2 huvaagdah esiig shalgaj bn

(x%1000-x/1000)%7==0 uu // 7 huvaagdah shinjeer 7 huvaagdah esehiig shalgaj bn

{a[0]+a[2]-(a[1]+a[3])}%11==0 uu //
a[1]+... +a[3]=30 uu

// oronguudiig shalgaad yalgaatai tsifriin toog n-d olgoj bn
i<4 bol
{ (j<4 ba n!=3) bol
a[i]!=a[j] bol n=n+1;
j=j+1 }
i=i+1; j=i+1;

n<3 bol b[k]=x; k=k+1

x=x+1;

while ashiglahaar hiichlee sonin l yum bolchihloo.

_________________
everything


Top
   
 Post subject: Re: Biy daaltin bodlogo
PostPosted: Oct.14.13 8:53 pm 
Offline
Өсөх Ирээдvйтэй Гишvvн
Өсөх Ирээдvйтэй Гишvvн

Joined: Oct.11.13 7:00 pm
Posts: 9
Hehe chamd ih bayarlalaa... Ih setgel gargaj bodson bn.. Gehdee nz ni sn oilgodoggui e.. Uul ni yg
#include<stdio.h>
int main(){
int....



} ntr gd programmiig ni bichchuul bur sn bhin..hehe namaig ymar dawruu gar we gj bodoh bh gehdee uuchlaarai bi unendee sn oilgoj uguhgui bn aa... Manaih yg ch tiim hund ym uzeegui bga ym aa while ntr gd uzeegui zgr l a, b, c 3toonii niilber oloh.. iimerhuu ym l uzed ywj bgn..hehe


Top
   
 Post subject: Re: Biy daaltin bodlogo
PostPosted: Oct.14.13 9:45 pm 
Offline
Supsta Asuult Sambar
User avatar

Joined: May.21.02 11:17 pm
Posts: 15369
nii nuugui helehed erthen mergejilee solison n deer bha

_________________
¯\_(ツ)_/¯


Top
   
 Post subject: Re: Biy daaltin bodlogo
PostPosted: Oct.16.13 7:17 pm 
Offline
Өсөх Ирээдvйтэй Гишvvн
Өсөх Ирээдvйтэй Гишvvн

Joined: Oct.11.13 7:00 pm
Posts: 9
onzfeat chi anhnaasaa programm bichij chaddag tursun ym u? Tiim l surhii mundag ym bol programm Algoritmiig ni zuraad ugchuuch.. Uuru ch gsn chadahgui ym bj..


Top
   
 Post subject: Re: Biy daaltin bodlogo
PostPosted: Oct.17.13 3:30 am 
Offline
• Moderator*
<b><font color=#0000FF>• Moderator*</font></b>

Joined: Oct.17.08 3:02 pm
Posts: 3196
@ http://www.youtube.com/watch?v=4F4qzPbcFiA


Top
   
 Post subject: Re: Biy daaltin bodlogo
PostPosted: Oct.18.13 3:48 pm 
Offline
Өвөг Дээдсийн Сахиус Гишvvн
Өвөг Дээдсийн Сахиус Гишvvн
User avatar

Joined: May.20.12 12:52 am
Posts: 731
Vvh Tegeed while ene ter uzheeeree oilgochih bhaa, tegeed oroldlogo shuu dee hunii helsniig sain sons.

_________________
everything


Top
   
 Post subject: Re: Biy daaltin bodlogo
PostPosted: Oct.24.13 4:34 pm 
Offline
¤ Powered by Music
User avatar

Joined: Jul.31.05 2:30 am
Posts: 5269
Location: http://defeu.blog.inet.mn
CS200 wrote:
Сайн байцгаана уу?
Code:
a1=1, a2=1 an+2=an+an+1
baih tsuwaag Фибоначийн цуваа гэж нэрлэдэг. Уг tsuwaanii 10000-d oir orshih gishuuniig dugaariin hamt oloh Algoritm, Programm zohio... ene bodlogiig bodoj tuslaach...


Fibonacci toog oloh chn nuguu "reccursive function", buyu uuruu uuriiguu duuddag function-ii hamgiin tod jishee ni gj bodjiin. Alivaa x-deh Fibonacci too ni umnuh 2 tooniihoo utgaa duudaad, niilber ni

yamar hel drhees shaltgaalaad syntax ni uur bh, thde jishee ni:

Code:
int Fibonacci(int x){
     if (x==1 or x==2)
             return 1;
     else
             return Fibonacci(x-1)+Fibonacci(x-2);
}

_________________
http://defeu.blog.inet.mn


Top
   
 Post subject: Re: Biy daaltin bodlogo
PostPosted: Oct.24.13 4:39 pm 
Offline
¤ Powered by Music
User avatar

Joined: Jul.31.05 2:30 am
Posts: 5269
Location: http://defeu.blog.inet.mn
CS200 wrote:
n%m hurtelh 3-d uldegdelgui huwaagdah toonuudiin niilber oloh Algoritm, Programm zohio.. Eniig bodood uguuch..


n-m hurtelh too yum uu te. n-ees m hurtel 1,1eer ni 3t huvaaj uzeel. %-remainder operator ashiglaad uldegdel ni 0 bval niilbertee nemeed l yavchna.

Code:
int niilber=0;
        for (int i=n; i<=m; i++)
               if (i%3==0)
                   niilber=niilber+i;

_________________
http://defeu.blog.inet.mn


Top
   
 Post subject: Re: Biy daaltin bodlogo
PostPosted: Oct.29.13 9:22 pm 
Offline
Өсөх Ирээдvйтэй Гишvvн
Өсөх Ирээдvйтэй Гишvvн

Joined: Oct.11.13 7:00 pm
Posts: 9
Hehe mongolhvv oilgoloo... Ta nart bugded ni bayarlalaa...


Top
   
 Post subject: Re: Biy daaltin bodlogo
PostPosted: Oct.29.13 9:24 pm 
Offline
Өсөх Ирээдvйтэй Гишvvн
Өсөх Ирээдvйтэй Гишvvн

Joined: Oct.11.13 7:00 pm
Posts: 9
Ta nar ali2 surguulid surdag we?...


Top
   
 Post subject: Re: Biy daaltin bodlogo
PostPosted: Apr.30.17 9:28 pm 
Offline
Шинэков Гишvvн
Шинэков Гишvvн

Joined: Apr.30.17 9:21 pm
Posts: 1
sain bna uu yum asuuh gsiimaa bodoj ogch tuslana uu eswel argachilal zaaj ogno u bayrlala
za jisheeni -bosoo 2 orong a b c tai holboh yumaa
a b c a a b b c c
a b c b c a c a b geel 2shirhiig a b c holboohoor =9shirheg bgaamaa
zaa tgheer 10 shirheg bosooo gj bodod a b c =holbuul heden bolomj bga bol gd l
hariulj tuslana uu


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 19 posts ] 

All times are UTC+09:00


Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Copyright Asuult.NET © 2000-2015.
Administrative Contact: Khundaga Khurelbaatar [hundaga@hotmail.com]
Tel: 1-888-303-4927, Fax: 1-888-406-2264.
Powered by phpBB © 2000-2015 phpBB Group. Powered by phpBB® Forum Software © phpBB Limited