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
Ïà¹ØÎĵµ£º
In recent years, web services have emerged as a popular technology for remote method calls. Technically, a web service has two components:
A service that can be accessed with the SOAP transport protocol
A description of the service in the WSDL format
SOAP is an XML protocol for invoking remote me ......
DateTimeHelper ʱ¼ä×é¼þ
/**
*
*/
package com.ibm08001.bbs.utils;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
*
*/
public class DateTimeHelper {
private static SimpleDateFormat FULL_SDF = new SimpleDateFormat ......
WindowsÏÂJAVAÓõ½µÄ»·¾³±äÁ¿Ö÷ÒªÓÐ3¸ö£¬JAVA_HOME¡¢CLASSPATH¡¢PATH¡£ÏÂÃæÖð¸ö·ÖÎö¡£
JAVA_HOMEÖ¸ÏòµÄÊÇJDKµÄ°²×°Â·¾¶£¬ÈçC:\jdk1.5.0_06£¬ÔÚÕâ·¾¶ÏÂÄãÓ¦¸ÃÄܹ»ÕÒµ½bin¡¢libµÈĿ¼¡£ÖµµÃÒ»ÌáµÄÊÇ£¬JDKµÄ°²×°Â·¾¶¿ÉÒÔÑ¡ÔñÈÎÒâ´ÅÅÌĿ¼£¬²»¹ý½¨ÒéÄã·ÅµÄĿ¼²ã´Îdzһµã£¬Èç¹ûÄã·ÅµÄĿ¼ºÜÉî£ ......
Thread-Per-Message PatternµÄ²ÎÓëÕߣº
1. Client£¨Î¯ÍÐÈË£©²ÎÓëÕß
Client²ÎÓëÕß»á¶ÔHost²ÎÓëÕß·¢³öÇëÇó¡£Client²ÎÓëÕß²¢²»ÖªµÀHost²ÎÓëÕß»áÈçºÎʵÏÖÕâ¸öÇëÇó¡£
2. Host²ÎÓëÕß
µ±Host²ÎÓëÕß½ÓÊÕµ½Client²ÎÓëÕßµÄÇëÇóʱ£¬»á½¨Á¢ÐµÄÏ̲߳¢Æô¶¯Ëü¡£
Õâ¸öеÄÏ ......
[Image]ʹÓà Java 2D È¡µÃͼÏñÉÏÖ¸¶¨Î»ÖÃÏñËØµÄ rgb ÑÕÉ«·ÖÁ¿
CMYKÅäÉ«±í
RGBÅäÉ«±í
ʵЧ
Ó¢ÎÄÃû³Æ
RGB
16É«
PaleTurquoise1
187 255 255
#BBFFFF
PaleTurquoise2
174 238 238
#AEEEEE
PaleTurquoise3
150 205 205
#96CDCD
PaleTurquoise4
102 139 139
#668B8B
µÈµÈ. ......