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

java ´óÊýÀà


import java.io.*;
class BigInt 
{
 int a[];
 int len;
 BigInt(String str)
 {
 {
  len=str.length();
  a=new int[len];
  for(int i=0;i<len;i++) 
  {
   this.a[i]=str.charAt(i)-48;
  }
 }
 }
 public BigInt bigplus(BigInt b) 
 {
  BigInt sum;
  int l;
  int m=len-1;
  int n=b.len-1;
  int max;
  if(len>=b.len)
  {
   l=b.len;
   max=len-1;
   sum=this;
  }
  else
  {
   l=len;
   sum=b;
   max=b.len-1;
  }
  for(int i=0;i<l;i++) 
  {
    sum.a[max]=a[m]+b.a[n];
    if(max!=0&&sum.a[max]>=10)
    {
     sum.a[max]=sum.a[max]-10;
     sum.a[max-1]++;
    }
    m--;
    n--;
    max--;
  }
  return sum;
  }
  public void output()
  {
 for(int i=0;i<len;i++)
 {
  System.out.print(a[i]);
 }  
  }
}
class TestBig
{
 public static void main(String[] args) throws IOException
 {
String str1;
String str2;
System.out.println("ÇëÊäÈë´óÊý1:");
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
str1=br.readLine();
System.out.println("ÇëÊäÈë´óÊý2:");
BufferedReader br1=new BufferedReader(new InputStreamReader(System.in));
str2=br1.readLine();
 

 BigInt a1=new BigInt(str1);
 BigInt a2=new BigInt(str2);
 BigInt a3=a1.bigplus(a2);
      a3.output();
 }
}


Ïà¹ØÎĵµ£º

Java Òì³£´¦Àí

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintWriter;
public class ExceptionDefaultHandler
{
private final static String _relativeExceptionLogPath = "log";
private final static String _defaultExceptionLogFileName = "exception.log";
......

Java JDBC±à³Ì×ܽá[z]

 Hibernate¡¢TopLinkµÈOR Mapping²Ù×÷Êý¾Ý¿âµÄ¼¼Êõ¶¼Êǽ¨Á¢JDBC¼¼ÊõÖ®Éϵģ¬Êµ¼ÊÀ´Ëµ£¬ËûÃǵÄÐÔÄܺÍJDBCÊÇÓкܴó²î¾àµÄ£¬µ«·´¹ýÀ´Ëµ£¬Èç¹ûJDBCÓò»ºÃ£¬»¹²»Èç hibernateÄØ¡£ÔÝÇÒ²»ËµÕâЩÊëÓÅÊëÁӵϰÁË£¬ÔÙ´ÎÖ÷ÒªÊǶÔJavaµÄ»ù´¡¼¼Êõ×ö¸ö×ܽᣬÒÔ¼ÓÉîÈÏʶ¡£
Ò»¡¢JDBCµÄ»ù±¾Ô­Àí
JDBCÊÇJava²Ù×÷Êý¾Ý¿âµÄ¼¼Êõ¹æ·¶¡£Ëûʵ ......

Java source code for calculating E


The Mean Opinion
Score (MOS) test is a well acccepted standard which is defined in the ITU-T
Rec.P.800.
The value of MOS
test is generated by letting large number of listeners to evaluate the quality
of the test sentences. 
The test scores
are averaged to a mean score which range fro ......

JAVA³õѧÕß±ØÖª

 
1.     Java Ô´ÎļþÖÐ×î¶àÖ»ÄÜÓÐÒ»¸öpublicÀà,¶øÇÒÕâ¸öÀàµÄÀàÃûÒªºÍÎļþÃûÒ»ÖÂ.ÆäËûÀàµÄ¸öÊý²»ÏÞ¡£
2.    ÃæÏò¶ÔÏó³ÌÐòÉè¼ÆµÄÌØÕ÷£¨·â×°ÐÔ£©£¨¼Ì³Ð£©£¨¶à̬ÐÔ£©
3.    ½Ó¿ÚÊÇÓÉ£¨³éÏó·½·¨£©ºÍ£¨³£Á¿£©×é³ÉµÄÌØÊâÀà
4.    ÓÃstaticÐÞÊεķ½·¨Ê ......

JavaÖеÄ×Ö·û¼¯±àÂëÈëÃÅ 1

 
 
JavaÖеÄ×Ö·û¼¯±àÂëÈëÃÅ
ASCII¼°Ïà¹Ø±ê×¼
¡¡¡¡µØÇòÈ˶¼ÖªµÀASCII¾ÍÊÇÃÀ¹ú±ê×¼ÐÅÏ¢½»»»ÂëµÄËõд£¬Ò²ÖªµÀASCII¹æ¶¨ÓÃ7λ¶þ½øÖÆÊý×ÖÀ´±íʾӢÎÄ×Ö·û£¬ASCII±»¶¨Îª¹ú¼Ê±ê×¼Ö®ºóµÄ ´úºÅΪISO-646.ÓÉÓÚASCIIÂëֻʹÓÃÁË7¸ö¶þ½øÖÆÎ»£¬Ò²¾ÍÊÇ˵һ¸ö×Ö½Ú¿ÉÒÔ±íʾµÄ256¸öÊý×ÖÖУ¬Ëü½öʹÓÃÁË0-127Õâ128¸öÂëλ£¬Ê£Ï嵀 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ