Идёт турнир! | В настоящий момент идёт турнир. Некоторая информация и функции сервера недоступны до его окончания.
|
|
imesecan | 13.фев.2011 в 08:02:53 | |
0 | We take the first number as the smallest, then starting from the second number until the last item, we compare the smallest item with the active element.
If active element is smaller than the min, we assign this number (active element) to min.
|
imesecan | 17.фев.2011 в 08:12:49 | |
1 | You assign the first array element to min before the loop.
min=a[0];
Then in the loop,
for(int i=1; i<=num; i++)
check all the elements one by if that is smaller than min if (a[i]<min)
if it's smaller we say min = a[i];
|
imesecan | 25.фев.2011 в 07:57:15 | |
2 | You have put system("Pause"); You shouldn't use such extra info when entering codes to the site.
Please don't submit full code to the site.
|
imesecan | 07.апр.2011 в 10:08:38 | |
3 | Реплика удалена
|
|