<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	ความเห็นบน: สั่งคอมพิวเตอร์ให้ &#8220;ทอนเงิน&#8221;	</title>
	<atom:link href="https://www.parinya.net/node/736/feed" rel="self" type="application/rss+xml" />
	<link>https://www.parinya.net/node/736</link>
	<description>ทฤษฎีการคำนวณสำหรับคอมพิวเตอร์และทฤษฎีการประมวลผลสารสนเทศ</description>
	<lastBuildDate>Wed, 07 Jan 2009 08:53:38 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
	<item>
		<title>
		โดย: tomatamo		</title>
		<link>https://www.parinya.net/node/736/comment-page-1#comment-5125</link>

		<dc:creator><![CDATA[tomatamo]]></dc:creator>
		<pubDate>Wed, 07 Jan 2009 08:53:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetai.com/archives/736#comment-5125</guid>

					<description><![CDATA[ลองดูครับไม่รู้ใช้ได้เปล่า c#
			double remaining = 0;
			double thousand = 0;
			double fivehundred = 0;
			double onehundred = 0;
			double fifty = 0;
			double twenty = 0;
			double ten = 0;
			double five = 0;
			double one = 0;
			double fiftycent = 0;
			double twentyfivecent = 0;
			string[] sp = textBox1.Text.Split(&#039;.&#039;);
			thousand = Math.Floor(Convert.ToDouble(sp[0])/Convert.ToDouble(1000));
			remaining = Convert.ToDouble(sp[0])%1000;
			fivehundred = Math.Floor(remaining/Convert.ToDouble(500));
			remaining = remaining%500;
			onehundred = Math.Floor(remaining/Convert.ToDouble(100));
			remaining = remaining%100;
			fifty = Math.Floor(remaining/Convert.ToDouble(50));
			remaining = remaining%50;
			twenty = Math.Floor(remaining/Convert.ToDouble(20));
			remaining = remaining%20;
			ten = Math.Floor(remaining/Convert.ToDouble(10));
			remaining = remaining%10;
			five = Math.Floor(remaining/Convert.ToDouble(5));
			remaining = remaining%5;
			one = Math.Floor(remaining/Convert.ToDouble(1));
			remaining = remaining%1;
			if(sp.Length&#062;1)
			{
				fiftycent = Math.Floor(Convert.ToDouble(sp[1])/Convert.ToDouble(50));
				remaining = Convert.ToDouble(sp[1])%50;
				twentyfivecent = Math.Floor(remaining/Convert.ToDouble(25));
			}
			MessageBox.Show
				(
				&quot;Thousand =	&quot;+thousand.ToString()+&quot;\n&quot;+
				&quot;Fivehundred =	&quot;+fivehundred.ToString()+&quot;\n&quot;+
				&quot;Onehundred =	&quot;+onehundred.ToString()+&quot;\n&quot;+
				&quot;Fifty =	&quot;+fifty.ToString()+&quot;\n&quot;+
				&quot;Twenty =	&quot;+twenty.ToString()+&quot;\n&quot;+
				&quot;Ten =	&quot;+ten.ToString()+&quot;\n&quot;+
				&quot;Five =	&quot;+five.ToString()+&quot;\n&quot;+
				&quot;One =	&quot;+one.ToString()+&quot;\n&quot;+
				&quot;Fiftycent =	&quot;+fiftycent.ToString()+&quot;\n&quot;+
				&quot;Twentyfivecent =	&quot;+twentyfivecent.ToString()+&quot;\n&quot;
				);]]></description>
			<content:encoded><![CDATA[<p>ลองดูครับไม่รู้ใช้ได้เปล่า c#<br />
			double remaining = 0;<br />
			double thousand = 0;<br />
			double fivehundred = 0;<br />
			double onehundred = 0;<br />
			double fifty = 0;<br />
			double twenty = 0;<br />
			double ten = 0;<br />
			double five = 0;<br />
			double one = 0;<br />
			double fiftycent = 0;<br />
			double twentyfivecent = 0;<br />
			string[] sp = textBox1.Text.Split(&#8216;.&#8217;);<br />
			thousand = Math.Floor(Convert.ToDouble(sp[0])/Convert.ToDouble(1000));<br />
			remaining = Convert.ToDouble(sp[0])%1000;<br />
			fivehundred = Math.Floor(remaining/Convert.ToDouble(500));<br />
			remaining = remaining%500;<br />
			onehundred = Math.Floor(remaining/Convert.ToDouble(100));<br />
			remaining = remaining%100;<br />
			fifty = Math.Floor(remaining/Convert.ToDouble(50));<br />
			remaining = remaining%50;<br />
			twenty = Math.Floor(remaining/Convert.ToDouble(20));<br />
			remaining = remaining%20;<br />
			ten = Math.Floor(remaining/Convert.ToDouble(10));<br />
			remaining = remaining%10;<br />
			five = Math.Floor(remaining/Convert.ToDouble(5));<br />
			remaining = remaining%5;<br />
			one = Math.Floor(remaining/Convert.ToDouble(1));<br />
			remaining = remaining%1;<br />
			if(sp.Length&gt;1)<br />
			{<br />
				fiftycent = Math.Floor(Convert.ToDouble(sp[1])/Convert.ToDouble(50));<br />
				remaining = Convert.ToDouble(sp[1])%50;<br />
				twentyfivecent = Math.Floor(remaining/Convert.ToDouble(25));<br />
			}<br />
			MessageBox.Show<br />
				(<br />
				&#8220;Thousand =	&#8220;+thousand.ToString()+&#8221;\n&#8221;+<br />
				&#8220;Fivehundred =	&#8220;+fivehundred.ToString()+&#8221;\n&#8221;+<br />
				&#8220;Onehundred =	&#8220;+onehundred.ToString()+&#8221;\n&#8221;+<br />
				&#8220;Fifty =	&#8220;+fifty.ToString()+&#8221;\n&#8221;+<br />
				&#8220;Twenty =	&#8220;+twenty.ToString()+&#8221;\n&#8221;+<br />
				&#8220;Ten =	&#8220;+ten.ToString()+&#8221;\n&#8221;+<br />
				&#8220;Five =	&#8220;+five.ToString()+&#8221;\n&#8221;+<br />
				&#8220;One =	&#8220;+one.ToString()+&#8221;\n&#8221;+<br />
				&#8220;Fiftycent =	&#8220;+fiftycent.ToString()+&#8221;\n&#8221;+<br />
				&#8220;Twentyfivecent =	&#8220;+twentyfivecent.ToString()+&#8221;\n&#8221;<br />
				);</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		โดย: MacroArt		</title>
		<link>https://www.parinya.net/node/736/comment-page-1#comment-3315</link>

		<dc:creator><![CDATA[MacroArt]]></dc:creator>
		<pubDate>Fri, 16 Nov 2007 06:05:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetai.com/archives/736#comment-3315</guid>

					<description><![CDATA[ยืนยันว่าข้อสอบโอลิมปิกคอมพิวเตอร์หินจริงๆ ครับ

สมัยผมสอบ เจอโจทย์ว่ากำหนดพิกัด xy ของมุมของรูปหลายเหลี่ยมมาให้ และมีพิกัดของจุดอีกหนึ่งจุด ให้เขียนโปรแกรม solve ว่าจุดนี้อยู่ข้างในหรือข้างนอกรูปหลายเหลี่ยม

โจทย์ดูเหมือนง่ายเลยครับ แต่พอทำจริงโคตรยาก สมัยนั้นใช้ Turbo Pascal เขียน]]></description>
			<content:encoded><![CDATA[<p>ยืนยันว่าข้อสอบโอลิมปิกคอมพิวเตอร์หินจริงๆ ครับ</p>
<p>สมัยผมสอบ เจอโจทย์ว่ากำหนดพิกัด xy ของมุมของรูปหลายเหลี่ยมมาให้ และมีพิกัดของจุดอีกหนึ่งจุด ให้เขียนโปรแกรม solve ว่าจุดนี้อยู่ข้างในหรือข้างนอกรูปหลายเหลี่ยม</p>
<p>โจทย์ดูเหมือนง่ายเลยครับ แต่พอทำจริงโคตรยาก สมัยนั้นใช้ Turbo Pascal เขียน</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		โดย: Tai Parinya		</title>
		<link>https://www.parinya.net/node/736/comment-page-1#comment-3314</link>

		<dc:creator><![CDATA[Tai Parinya]]></dc:creator>
		<pubDate>Fri, 16 Nov 2007 05:48:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetai.com/archives/736#comment-3314</guid>

					<description><![CDATA[โอ้ว ถ้าเป็นข้อสอบโอลิมปิคล่ะก็ มหาหินกว่านี้เป็นสิบ ๆ เท่าเลยครับคุณข่า ผมเคยอ่านโจทย์แล้ว ไม่มีปัญญาทำได้ซักข้อเดียว T-T ความโง่ไม่เคยปราณีใครครับ

เออ ไมคุณ patr รู้ล่ะเนี่ย T-T จริง ๆ ด้วยแหล่ะ เนี่ยเมื่อไม่กี่วันมานี้ มีคนอีเมลล์มาขอให้ผมเขียนโค้ดให้ด้วย แต่ผมไม่มีปัญญาทำให้อ่ะ เลยปฏิเสธไป

น่าคิดนะเนี่ยคุณเอ ฮา :-P]]></description>
			<content:encoded><![CDATA[<p>โอ้ว ถ้าเป็นข้อสอบโอลิมปิคล่ะก็ มหาหินกว่านี้เป็นสิบ ๆ เท่าเลยครับคุณข่า ผมเคยอ่านโจทย์แล้ว ไม่มีปัญญาทำได้ซักข้อเดียว T-T ความโง่ไม่เคยปราณีใครครับ</p>
<p>เออ ไมคุณ patr รู้ล่ะเนี่ย T-T จริง ๆ ด้วยแหล่ะ เนี่ยเมื่อไม่กี่วันมานี้ มีคนอีเมลล์มาขอให้ผมเขียนโค้ดให้ด้วย แต่ผมไม่มีปัญญาทำให้อ่ะ เลยปฏิเสธไป</p>
<p>น่าคิดนะเนี่ยคุณเอ ฮา 😛</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		โดย: เอ		</title>
		<link>https://www.parinya.net/node/736/comment-page-1#comment-3313</link>

		<dc:creator><![CDATA[เอ]]></dc:creator>
		<pubDate>Thu, 15 Nov 2007 18:58:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetai.com/archives/736#comment-3313</guid>

					<description><![CDATA[ถ่ายเอกสารแจกเป็น อัลกอริธึมทอนเงิน Cheat sheet เลยครับ (ฮา)]]></description>
			<content:encoded><![CDATA[<p>ถ่ายเอกสารแจกเป็น อัลกอริธึมทอนเงิน Cheat sheet เลยครับ (ฮา)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		โดย: patr		</title>
		<link>https://www.parinya.net/node/736/comment-page-1#comment-3312</link>

		<dc:creator><![CDATA[patr]]></dc:creator>
		<pubDate>Thu, 15 Nov 2007 13:30:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetai.com/archives/736#comment-3312</guid>

					<description><![CDATA[รุ่นผม เค้าบอกให้เขียนเอทีเอ็ม (มีแบงค์หมดได้ด้วย)
แต่คำถามตามเว็บบอร์ดที่ผมเจอ ถ้าผมมีเวลาผมจะตอบแบบพี่ไท้นะครับ


แต่... โลกไม่ได้สวยงามขนาดนั้น


เพราะเจ้าของกระทู้จะมาถามต่อว่า ช่วยเขียนเป็นโค๊ดให้ดูได้หรือเปล่า....


อันนี้มีเซ็ง -_-&#039;]]></description>
			<content:encoded><![CDATA[<p>รุ่นผม เค้าบอกให้เขียนเอทีเอ็ม (มีแบงค์หมดได้ด้วย)<br />
แต่คำถามตามเว็บบอร์ดที่ผมเจอ ถ้าผมมีเวลาผมจะตอบแบบพี่ไท้นะครับ</p>
<p>แต่&#8230; โลกไม่ได้สวยงามขนาดนั้น</p>
<p>เพราะเจ้าของกระทู้จะมาถามต่อว่า ช่วยเขียนเป็นโค๊ดให้ดูได้หรือเปล่า&#8230;.</p>
<p>อันนี้มีเซ็ง -_-&#8216;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		โดย: ข่า		</title>
		<link>https://www.parinya.net/node/736/comment-page-1#comment-3311</link>

		<dc:creator><![CDATA[ข่า]]></dc:creator>
		<pubDate>Thu, 15 Nov 2007 11:29:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetai.com/archives/736#comment-3311</guid>

					<description><![CDATA[นี่มันคล้าย ๆ ข้อสอบโอลิมปิค คอมพิวเตอร์ตอนผมอยู่ ม.ปลายเลย แต่อันนั้นจะให้เปลี่ยนเป็น เลข Roman XII อะไรทำนองเนี้ย ก็คล้าย ๆ กันนะ]]></description>
			<content:encoded><![CDATA[<p>นี่มันคล้าย ๆ ข้อสอบโอลิมปิค คอมพิวเตอร์ตอนผมอยู่ ม.ปลายเลย แต่อันนั้นจะให้เปลี่ยนเป็น เลข Roman XII อะไรทำนองเนี้ย ก็คล้าย ๆ กันนะ</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
