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

UVAOj javaÊäÈëÊä³ö


/**
* ### Õæ難µÄ題Ä¿: ¹·Æ¨ÑÝËã·¨ (測資ºÜ機車)
* 測驗結¹û: x.xx0 ms
* 測驗ÈÕÆÚ: 200y-mm-dd
* @author Raymond Wu (Сè°Íè)
*/
public class Main {
 
  // 輸Èë緩衝區 (緩衝¿Õ間ÐèÒªÒÀÕÕ題Ä¿調Õû)
  public static byte[] cinbuf = new byte[1024];
 
  // 讀È¡Ò»個單×Ö (Ó¢ÎÄÐÕÃû°üº¬¿Õ°×時請²»ÒªÓÃ)
  public static String readToken() {
    int offset = 0;
    int bytedata = -1;
    
    try {
      // ÂÔ過·Ç單×ÖµÄ×ÖÔª '\t','\n','\r',' '
      bytedata = System.in.read();
      while(bytedata==9||bytedata==10||bytedata==13||bytedata==32) {
        bytedata = System.in.read();
      }
 
      // 載Èë單×ÖµÄ×ÖÔª
      while(bytedata!=-1) {
        if(bytedata==9||bytedata==10||bytedata==13||bytedata==32) {
          break;
        } else {
          cinbuf[offset++] = (byte)bytedata;
        }
        bytedata = System.in.read();
      }
    } catch(Exception e) {}
    
    if(offset+bytedata==-1) return null; // ´®Á÷結Êø
    return new String(cinbuf,0,offset);
  }
  
  // 讀È¡Ò»ÐÐ
  public static String rea


Ïà¹ØÎĵµ£º

Java native2ascii ¼òµ¥×ªÂë

native2ascii.exe ÊÇ Java µÄÒ»¸öÎļþתÂ빤¾ß£¬Êǽ«ÌØÊâ¸÷ÒìµÄÄÚÈÝ ×ªÎª ÓÃÖ¸¶¨µÄ±àÂë±ê×¼ÎÄÌåÐÎʽͳһµÄ±íÏÖ³öÀ´£¬Ëüͨ³£Î»ÓÚ JDK_home\bin Ŀ¼Ï£¬°²×°ºÃ Java SE ºó£¬¿ÉÔÚÃüÁîÐÐÖ±½ÓʹÓà native2ascii ÃüÁî½øÐÐתÂ룬ʾÀý£º
native2ascii -encoding 8859_1 c:\test.txt c:\temp.txt
½« test.txt ÎļþÄÚÈÝÓà 8859_1 × ......

JavaÇóÖ°¼òÀú

¸ö ÈË ¼ò Àú
ÐÕ    Ãû£º
ÍõÖ¾¹ú
ÐÔ    ±ð£º
ÄÐ
Äê    Á䣺
23Ëê
ÁªÏµµç»°£º
13124799190
ר    Òµ£º
¼ÆËã»ú¼¼Êõ
¹¤×÷ʱ¼ä£º
Ò»ÄêÒÔÉÏ
ѧ    Àú£º
´óר
ÓÊ    Ï䣺
andy478168@yeah.net
¡ï ÇóÖ°ÒâÏò
¹¤×÷ÐÔÖÊ ......

ÔÚJavaÖе÷ÓÃC++

ÔÚjavaÖе÷ÓÃ×Ô¼ºµÄc++´úÂëÊÇÒ»¼þ¼òµ¥µÄÊÂÇ飬ÒÔÏÂÀàΪÀý£º
class Prompt {
  private native String getLine(String prompt);
  public static void main(String args[]) {
    Prompt p = new Prompt();
    String input = p.getLine("Type a line: ");
  &nbs ......

wikiϵͳ£¨JAVA£© ¹Û²ì


×î½üÏë¶ÔÓÚwikiϵͳµÄÔ´´úÂëÑо¿ÏÂ
 
jspwikiÊÇÒ»¸ö²»´íµÄwikiÒýÇ棬´¿jsp/servletдµÄ¡£JSPWiki²»Ê¹ÓÃÏֳɵÄÊý¾Ý¿â¹ÜÀíÈí¼þ£¬ËùÓеÄÎļþÒÔÎı¾ÎļþµÄÐÎʽ´æ·Å¡£ËüÀûÓÃÀàËÆCVSµÄ»úÖƱ£Ö¤ÁËÎļþ°æ±¾µÄÍêÕûÐÔ¡£Ö§³ÖÖÐÎÄ£¬Ö§³Ö°æ±¾±È½Ï¡¢È¨ÏÞ¹ÜÀíµÈ¹¦ÄÜ£¡
ÏîÄ¿Ö÷Ò³£º http://www.jspwiki.org/
ÎĵµµØÖ·£º  ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ