Results 1 to 14 of 14
Hybrid View
-
7th October 2010 04:57 #1Registered User
Join Date: Jun:2010
Location:
Posts: 171
,
1234321,Last edited by lludmill; 7th October 2010 at 12:19.
-
7th October 2010 05:49 #2Registered User
Join Date: Aug:2008
Location: Varna
Posts: 291
.Code:int mirrortest( unsigned val ) { unsigned mi1, mi2; if( val < 10 ) return 0; for( mi1 = 0; mi1 < val; val /= 10 ) { mi2 = mi1; mi1 = mi1 * 10 + val % 10; } return mi1 == val || mi2 == val; }
-
7th October 2010 14:47 #3Registered User
Join Date: Jun:2010
Location:
Posts: 171
, 30 . , . ,
-
7th October 2010 15:42 #4
. , -.
.
mi2 ?
. ( ).
, IBM.
ps - - "", ""..Code:#include "stdafx.h" int main() { unsigned val = 335599; unsigned mi1; for( mi1 = 0; val > 0; val /= 10 ) { mi1 = mi1 * 10 + val % 10; } printf("%d", mi1); return 0; }
.
Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
.
-
7th October 2010 18:12 #5Registered User
Join Date: Aug:2008
Location: Varna
Posts: 291
BornToDrink, mi2 liudmil . mi1. liudmill:
val % 10 val. mi1 = mi1 * 10 mi1 . val /= 10 val. mi1 - val. , liudmill? mi1 1234 a val 123. 4 val mi1. . mi2, mi1. 123 123, .
-
7th October 2010 19:10 #6Registered User
Join Date: Jun:2010
Location:
Posts: 171
,
-
7th October 2010 22:58 #7
val - 10? ?
Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others
-
7th October 2010 23:05 #8Registered User
Join Date: Dec:2007
Location: Sofia
Posts: 366
- .
- - ( / )
Code:int mirrortest(unsigned val) { unsigned mi1 = 0; unsigned mi2 = val; while (val > 0) { mi1 = mi1*10 + val%10; val /= 10; } return mi1 == mi2; }
-
8th October 2010 03:55 #9Registered User
Join Date: Aug:2008
Location: Varna
Posts: 291
. . 1 0. , .
Pheoman, -, .
-
9th October 2010 00:06 #10Registered User
Join Date: Dec:2007
Location: Sofia
Posts: 366
, -. 30-40% -. - ?
.
, '' - ,
-
9th October 2010 00:31 #11
-
9th October 2010 07:26 #12Registered User
Join Date: Aug:2008
Location: Varna
Posts: 291
, . , .
Originally Posted by Pheoman
?- ?
-
9th October 2010 14:23 #13
-
9th October 2010 15:15 #14




Reply With Quote

Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in