<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89251</guid>
        <pubDate>Wed, 29 Oct 2003 16:10:49 +0000</pubDate>
        <title>последняя единица</title>
        <link>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89251</link>
        <description><![CDATA[Visitor: Да, и тоже работает и для знаковых, и для беззнаковых и с любым представлением отрицательных :)]]></description>
        <author>Visitor</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89250</guid>
        <pubDate>Wed, 29 Oct 2003 13:29:45 +0000</pubDate>
        <title>последняя единица</title>
        <link>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89250</link>
        <description><![CDATA[Sazabis: у Ferrum'а походу круче всех получилось &nbsp;:D]]></description>
        <author>Sazabis</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89249</guid>
        <pubDate>Wed, 29 Oct 2003 13:02:30 +0000</pubDate>
        <title>последняя единица</title>
        <link>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89249</link>
        <description><![CDATA[Visitor: Всм, только ее очистить:<br><br>//вот ето:<br>c=0;<br>//тоже заменяет последнюю единицу на 0 :)]]></description>
        <author>Visitor</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89248</guid>
        <pubDate>Wed, 29 Oct 2003 13:00:56 +0000</pubDate>
        <title>последняя единица</title>
        <link>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89248</link>
        <description><![CDATA[Flex_Ferrum: c = c &amp; (c - 1)]]></description>
        <author>Flex_Ferrum</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89247</guid>
        <pubDate>Wed, 29 Oct 2003 12:54:07 +0000</pubDate>
        <title>последняя единица</title>
        <link>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89247</link>
        <description><![CDATA[Sazabis: причем тут &quot;только&quot; разве может быть 2 последних ед. ?]]></description>
        <author>Sazabis</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89246</guid>
        <pubDate>Wed, 29 Oct 2003 12:34:00 +0000</pubDate>
        <title>последняя единица</title>
        <link>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89246</link>
        <description><![CDATA[Visitor: Дык не разряд последний, а единицу последнюю. И еще в условии забыли слово &quot;только&quot; :)]]></description>
        <author>Visitor</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89245</guid>
        <pubDate>Wed, 29 Oct 2003 12:04:11 +0000</pubDate>
        <title>последняя единица</title>
        <link>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89245</link>
        <description><![CDATA[Sazabis: 2 trainer<br><div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&#60;br&#62; 101001010111&#60;br&#62;=&#60;br&#62; 101001010110&#60;br&#62;&#60;br&#62;&#60;br&#62;&#60;br&#62; 010101110000&#60;br&#62;=&#60;br&#62; 010101100000&#60;br&#62;&#60;br&#62;&#60;br&#62;&#60;br&#62; 101100101000&#60;br&#62;=&#60;br&#62; 101100100000&#60;br&#62;&#60;br&#62;&#60;br&#62;&#60;br&#62; 110100101010&#60;br&#62;=&#60;br&#62; 110100101000&#60;br&#62;</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script><br><br>я понятно объяснил ?]]></description>
        <author>Sazabis</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89244</guid>
        <pubDate>Wed, 29 Oct 2003 12:00:29 +0000</pubDate>
        <title>последняя единица</title>
        <link>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89244</link>
        <description><![CDATA[trainer: WinterMute уже ответил:<br>INT ClearLeastBit(INT value) {<br>   return value &amp; (int)-2;<br>}<br>Неверящие могут проверять :D]]></description>
        <author>trainer</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89243</guid>
        <pubDate>Wed, 29 Oct 2003 10:14:55 +0000</pubDate>
        <title>последняя единица</title>
        <link>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89243</link>
        <description><![CDATA[Visitor: С певой там немного другие операции, не битовые :) Логарифм.]]></description>
        <author>Visitor</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89242</guid>
        <pubDate>Wed, 29 Oct 2003 07:12:26 +0000</pubDate>
        <title>последняя единица</title>
        <link>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89242</link>
        <description><![CDATA[Sazabis: <div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <div class='quote '>если б первую... &nbsp;<br></div></div><br><br>Почему, это вызвало такую легкость ? Не могу найти решения :-/]]></description>
        <author>Sazabis</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89241</guid>
        <pubDate>Tue, 28 Oct 2003 13:35:05 +0000</pubDate>
        <title>последняя единица</title>
        <link>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89241</link>
        <description><![CDATA[Visitor: ну да, сорри, ~, пойду Си вспоминать :)]]></description>
        <author>Visitor</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89240</guid>
        <pubDate>Tue, 28 Oct 2003 13:33:14 +0000</pubDate>
        <title>последняя единица</title>
        <link>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89240</link>
        <description><![CDATA[Sazabis: 2Visitor<br> круто :)<br><br> но ты наверное хотел <br> с = с &amp; ~(-c) &nbsp;:)<br><br> мое решение<br> <br> с = с - ( с &amp; ( -с ) )<br><br> на 1 с больше :(<br><br>а с первой тоже неплохая задачка :) надо подумать &nbsp;&gt;:(]]></description>
        <author>Sazabis</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89239</guid>
        <pubDate>Tue, 28 Oct 2003 13:14:41 +0000</pubDate>
        <title>последняя единица</title>
        <link>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89239</link>
        <description><![CDATA[Visitor: Пришлось подумать :)<br><br>c = с &amp; !(!c+1) :)<br>]]></description>
        <author>Visitor</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89238</guid>
        <pubDate>Tue, 28 Oct 2003 13:11:21 +0000</pubDate>
        <title>последняя единица</title>
        <link>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89238</link>
        <description><![CDATA[Sazabis: 2WinterMute<br><br>не нето, надо не только для 45<br><br>45 - 44<br>1024 - 0<br>1025 - 1024<br>]]></description>
        <author>Sazabis</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89237</guid>
        <pubDate>Tue, 28 Oct 2003 13:07:00 +0000</pubDate>
        <title>последняя единица</title>
        <link>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89237</link>
        <description><![CDATA[WinterMute: Нафига там рекурсия?]]></description>
        <author>WinterMute</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89236</guid>
        <pubDate>Tue, 28 Oct 2003 13:05:56 +0000</pubDate>
        <title>последняя единица</title>
        <link>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89236</link>
        <description><![CDATA[Sazabis: у меня получилось!<br><br> скину решение, на днях, может кто подумать хочет :)<br><br> красивое решение :) всего несколько операций]]></description>
        <author>Sazabis</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89235</guid>
        <pubDate>Tue, 28 Oct 2003 13:05:46 +0000</pubDate>
        <title>последняя единица</title>
        <link>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89235</link>
        <description><![CDATA[WinterMute: 1:<br>int chislo = 45;<br>chislo &amp;= 0xfffffffe;<br><br>2:<br>int chislo = 45;<br>if( chislo \% 2 )chislo--;]]></description>
        <author>WinterMute</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89234</guid>
        <pubDate>Tue, 28 Oct 2003 12:58:56 +0000</pubDate>
        <title>последняя единица</title>
        <link>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89234</link>
        <description><![CDATA[Visitor: если б первую... :)<br>А так -- пока вижу только 1) развернуть цикл или 2) спрятать его в рекурсию :)]]></description>
        <author>Visitor</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89233</guid>
        <pubDate>Tue, 28 Oct 2003 12:18:37 +0000</pubDate>
        <title>последняя единица</title>
        <link>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89233</link>
        <description><![CDATA[Sazabis: и так для каждого, бита пока на 1 не упрусь &nbsp;&gt;:(<br>вот тебе и цикл.<br>]]></description>
        <author>Sazabis</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89231</guid>
        <pubDate>Tue, 28 Oct 2003 11:13:18 +0000</pubDate>
        <title>последняя единица</title>
        <link>https://forum.sources.ru/index.php?showtopic=9071&amp;view=findpost&amp;p=89231</link>
        <description><![CDATA[Sazabis: Есть задачка<br>Заменить последнию единицу в двоичном представлении числа на 0<br>число INT<br>для 45 101101<br>ответ 101100.<br><br>всебы ничего но 1 условие, блин. Не используя циклов!<br><br>у меня только рекурсией получилось, может можно как по другому.<br>if if if тоже глупо...]]></description>
        <author>Sazabis</author>
        <category>Алгоритмы</category>
      </item>
	
      </channel>
      </rss>
	