Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

JAVA ²ÊƱ³ÌÐò

import java.io.*;
public class CaiPiao {
 /**
  * @param args
  */
 public static void main(String[] args) {
  // TODO Auto-generated method stub
  String str;
  BufferedReader bufferReader = new BufferedReader(new InputStreamReader(System.in));
  try
  {
   str = bufferReader.readLine();
  }
  catch (IOException exc)
  {
   System.out.println("Error read from stdin!");
   return ;
  }
  
  int len = str.length();
  int[] number=new int[len];
  
     for(int i = 0; i < len; i++){
      number[i]=Integer.parseInt(str.substring(i,i+1));
     } 
         
     // 1234567890123
     int flag = 0;
     for( int i = 0; i < 13; i++ ){
      if( i >= 9 ){
       if( number[i] == (i - 9) ){
        flag++;
       }
         }else if( number[i] == (i+1) ){
          flag++;
         }
     }
         
     if( flag == 13 ){
      System.out.println("1");
     }else if( flag == 12 ){
      System.out.println("2");
     }else if( flag == 11 ){
      System.out.println("3");
     }else{
      System.out.println("No");
     }
     &nb


Ïà¹ØÎĵµ£º

JAVAÈçºÎµ÷ÓÃVOS2009½Ó¿Ú

ÎÒÔÚ×öVOS2009µÚ3·½½Ó¿Úµ÷Óã¬Í¨¹ýÕâ¸ö½Ó¿ÚÒª»ñÈ¡Óà¶îÏÔʾµ½webÉÏÓà¶î¡£
ÎÒÖªµÀjava´¦ÀíHTTP postÊý¾ÝÒÔ¼°webserviceÏà¹ØµÄÊý¾Ý£¬¿ÉÊǶÔÓÚvosÕâÖÖ½Ó¿ÚûŪ¹ý£¬²»Çå³þÔõôʵÏÖ£¬ÎÒ´ÓÍøÉÏÕÒÁËÏ£¬¿´µ½Óиö˵ÊÇͨ¹ýUDP·¢Ëͱ¨ÎÄʵÏֵ쬵«ÊDz»ÖªµÀÈçºÎÓÃjavaʵÏÖ£¬Âé·³ÓÐÖªµÀµÄ´Í½ÌÏ£¬Ð»Ð»£¡
ʾÀý±¨ÎĽṹ
OPTIONS sip:80 ......

javaС½á

1 ×÷ÓÃÓò
   javaÖÐ×÷ÓÃÓòµÄ·¶Î§ÓÉ»¨À¨ºÅ±êʾ¡£
2¹ØÓÚstatic 
 À¬»øÊÕ¼¯Æ÷Ö»ÖªµÀËѼ¯ÄÇЩÓÐnewÔËËã·û·ÖÅäµÄÄڴ棬²»ÖªµÀÈçºÎÊÍ·ÅÌØÊâÄÚ´æ¡£
 Èç¹ûÀ¬»øÊÕ¼¯Æ÷×¼±¸»ØÊÕ¶ÔÏóµÄÄڴ棬ËüÊ×Ïȵ÷ÓÃfinalize()£¬¶øÇÒÖ»ÓÐÔÚÏÂÒ»´ÎÀ¬»øËѼ¯¹ý³ÌÖУ¬²Å»áÕæÕý»ØÊÕ¶ÔÏóµÄÄÚ´æ¡£ËùÒÔ˵Èç¹ûʹÓÃ
 final ......

java ѧϰ˳Ðò Rubicon

j2eeµÄѧϰ˳Ðò
ÎÒÈÏΪj2eeÒ»¶¨ÒªÑ­Ðò½¥½ø£¬ÎÒ×Ô¼º¾ÍÊÇÕâÑù£¬´ÓÒ»¸öÒ»°ã¸ßУ¼ÆËã»úϵ±ÏÒµ£¬
È»ºóÂú»³ÃÎÏëºÍ¼¤ÇéÈ¥ÕÒ¹¤×÷£¬ÎÒkao,ÄǸöµ¥Î»¶¼¸øÎÒ°×ÑÛ£¬Á¬»áÀϼҵÄÐͼÓÐÁË£¬ÄǸöʱºòºÍ¼¸¸ö¸çÃÇ£¬×¡ÔÚµØÏÂÊÒ£¨¾ÍÔÚ±±º½ÄÇÀ¡£»·¾³Ï൱¶ñÁÓ£¬Å®ÅóÓÑÌìÌì´ßÎÒÕÒ¹¤×÷£¬ÎÒÆ¨¶¼²»»á£¬ÔõôÕÒ?Á¬ËÀµÄÐͼÓÐÁË£¨²»ÖªµÀ´ó¼ÒÓÐûÓÐÕ ......

JavaÏß³ÌÖ®Worker Thread Pattern

Worker Thread PatternµÄ²ÎÓëÕߣº
1. Client£¨Î¯ÍÐÈË£©²ÎÓëÕß
    Client²ÎÓëÕ߻ὨÁ¢Request²ÎÓëÕߣ¬²¢´«¸øChannel²ÎÓëÕß¡£
2. Channel£¨Í¨Â·£©²ÎÓëÕß
    Channel²ÎÓëÕß»á´ÓClient²ÎÓëÕß»ñÈ¡Request²ÎÓëÕߣ¬´«µÝ¸øWorker²ÎÓëÕß¡£
3. Worker£¨¹¤ÈË£©²ÎÓëÕß
    Worker ......

JavaÓëÆäËûÓïÑԵĻ¥²Ù×÷ÐÔ

JavaÓëÆäËûÓïÑԵĻ¥²Ù×÷ÐÔ ÊÕ²Ø
Ŀǰ£¬ÎÒÃÇÏîÄ¿ÖÐÐèÒªÓõ½°ÑJava³ÌÐòǶÈëµ½.Net³ÌÐòÖеļ¼Êõ£¬ÎÒÃÇ×îºóËù²ÉÓõļ¼ÊõÊÇCodemesh¹«Ë¾µÄJuggerNET¡£ÕâÖÖÀàËÆµÄ¼¼ÊõºÜ¶à£¬±È½ÏÖªÃûµÄÖ÷ÒªÓÐintrinsyc¹«Ë¾µÄJIntegraÒÔ¼°IBMµÄJava COM bridge¡£
ÏîÄ¿½øÐе½ÏÖÔÚ£¬·¢ÏÖÁ˺ܶàÎÊÌ⣬Ö÷ÒªÓÐÈçϼ¸´óÀàÎÊÌ⣺
1¡¢µ¯³ö´°¿ÚÎÊÌâ
¶ÔÓ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ