Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 ³£Óù¤¾ßÀà

DateTimeHelper ʱ¼ä×é¼þ
/**
 *
 */
package com.ibm08001.bbs.utils;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
 *
 */
public class DateTimeHelper {
        private static SimpleDateFormat FULL_SDF = new SimpleDateFormat ......

java Ïà¹ØµÄÊé Rubicon

¡¶Java how to program¡·
¡¶Core java 2¡·
¡¶Thinking in java¡·
¡¶³ÌÐòÉè¼ÆÊµ¼ù¡·
¡¶´úÂë´óÈ«¡·
¡¶Éè¼ÆÄ£Ê½¡·
¡¶java ÍøÂç±à³Ì¡·
serverlet jsp javabean spring habernate mysqlµÈ¡£ ......

java ѧϰ˳Ðò Rubicon

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