1. Си / Говнокод #18435

    +141

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    void perestanovka(int a[13][13], int n, int m){
    	 int maxim, minim, temp,i;
    	
    	 for (i=0; i<n; i++){
             minim=0;
    	 	 for (int j=1; j<m; j++){
     	  	if(a[i][j]<a[i][minim]) minim=j;
       	  }
    	 temp=a[i][0];
         a[i][0]=a[i][minim];
         a[i][minim]=temp;}
    			 
     	  for (int j=0; i<n; i++){
    	  	  maxim=0;
    	 	 for (int j=1; j<m; j++){
    		 	 if(a[i][j]>a[i][maxim]) maxim=j;
    		 }
    		 temp=a[i][m-1];
             a[i][m-1]=a[i][maxim];
    	     a[i][maxim]=temp; }
     }

    Запостил: lanior, 04 Июля 2015

    Комментарии (6) RSS

    • Gee wiesiklrl, that's such a great post!
      Ответить
    • So that's the case? Quite a <a href="http://dmzngca.com">reeloativn</a> that is.
      Ответить
    • You've got it in one. Colu'ndt have put it better. http://moliodj.com [url=http://biuegja.com]biuegja[/url] [link=http://szpwyzrjjdp.com]szpwyzrjjdp[/link]
      Ответить
    • Very valid, pithy, sutccnci, and on point. WD. http://omrlpsffb.com [url=http://summnhkfm.com]summnhkfm[/url] [link=http://vipqip.com]vipqip[/link]
      Ответить

    Добавить комментарий