Results 1 to 14 of 14

Thread:

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date: Jun:2010
    Location:
    Posts: 171

    ,
    1234321,
    Last edited by lludmill; 7th October 2010 at 12:19.

  2. #2
    Registered 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;
    }
    .

  3. #3
    Registered User
    Join Date: Jun:2010
    Location:
    Posts: 171
    , 30 . , . ,

  4. #4
    hmm BornToDrink's Avatar
    Join Date: Aug:2005
    Location: .
    Posts: 11,573
    . , -.
    .
    mi2 ?
    . ( ).
    , IBM.
    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;
    }
    ps - - "", ""..
    .
    Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
    .

  5. #5
    Registered 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, .

  6. #6
    Registered User
    Join Date: Jun:2010
    Location:
    Posts: 171
    ,

  7. #7
    philosophus duratea icaci's Avatar
    Join Date: Oct:2006
    Location: Aachen
    Posts: 2,698
    val - 10? ?
    Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others

  8. #8
    Registered 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;
    }

  9. #9
    Registered User
    Join Date: Aug:2008
    Location: Varna
    Posts: 291
    . . 1 0. , .
    Pheoman, -, .

  10. #10
    Registered User
    Join Date: Dec:2007
    Location: Sofia
    Posts: 366
    , -. 30-40% -. - ?

    .

    , '' - ,

  11. #11
    Pesho's Avatar
    Join Date: Nov:2001
    Location: Sofia
    Posts: 5,169
    - (unsigned )
    , !

  12. #12
    Registered User
    Join Date: Aug:2008
    Location: Varna
    Posts: 291
    Quote Originally Posted by Pheoman
    , -. 30-40% -.
    , . , .
    - ?
    ?

  13. #13
    Registered User TheRipper's Avatar
    Join Date: Jul:2005
    Location: Germany/Bulgaria
    Posts: 302
    , @Pheoman @IBM370.

  14. #14
    philosophus duratea icaci's Avatar
    Join Date: Oct:2006
    Location: Aachen
    Posts: 2,698
    Quote Originally Posted by TheRipper View Post
    , @Pheoman @IBM370.
    , IBM370 .
    Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |