{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

CoinsBot - ‫ﭘﺮوژه اول...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ‫ﭘﺮوژه اول ﻫﻮشﻣﺼﻨﻮﻋﯽ‬ ‫ﻓﺎز اول: 03 آذر، ﻓﺎز دوم: اﻣﺘﺤﺎن ﭘﺎﯾﺎن ﺗﺮم(‬ ‫ﻣﺴﺎﻟﻪ ‪CoinsBot‬‬ ‫ﻧﻤﺮه: 5.3 ﻧﻤﺮه‬ ‫)‬ ‫:‬ ‫:‬ ‫.‬ ‫«.‬ ‫»‬ ‫:‬ ‫:‬ ‫2(‬ ‫‪K‬‬ ‫. )01‬ ‫«‬ ‫‪( 10K‬‬ ‫‪»K‬‬ ‫. )‪N‬‬ ‫‪N‬‬ ‫.‬ ‫«‬ ‫»‬ ‫.‬ ‫‪N‬‬ ‫«‬ ‫(.‬ ‫»‬ ‫.)‬ ‫.‬ ‫:‬ ‫.‬ . . C# CoinsBot C ++ : . N K . : int K, N, result; cin >> K >> N; for (int i=0; i<N; i++) { cout << Act() << endl; cin >> result; } C ++ : . . . ( n : myActions[n] ) . n : myResults[n] ) . K N myK myN myStep myActions ) « ( » » ( myResults « Act() Act() . . . : . . ). (. : . . . ...
View Full Document

{[ snackBarMessage ]}