package com.ccc.test;
import java.util.ArrayList;
public class TestAdd extends TestIo
{
public static void main(String[] args) {
//System.out.println("start time:"+System.currentTimeMillis());
long start=System.currentTimeMillis();
int[] a = new int[1000];
int[] b = new int[1000];
for(int i=0;i<1000;i++)
{
a[i]=Integer.parseInt(String.valueOf(Math.round(Math.random()*100)));
b[i]=Integer.parseInt(String.valueOf(Math.round(Math.random()*100)));
}
int[] c=new int[a.length+b.length];
int t=0;
for (int i = 0; i < a.length; i++) {
c[t++]=a[i];
}
for (int i = 0; i < b.length; i++) {
c[t++]=b[i];
}
int x1=0; //第一個value
int x2=0; //第二個value
int temp=0;
int pk=0;
for(int k=0;k<c.length;k++){
for (int i = 0; i < c.length; i++) {
if(i+1<c.length){
if(c[i]>c[i+1])
{
temp=c[i+1];
c[i+1]=c[i];
c[i]=temp;
}
}
}
}
//out put
long end=System.currentTimeMillis();
System.out.println("start is "+start+"end is"+end+"minus:"+(end-start));
// for (int i = 0; i < c.length; i++) {
// System.out.println("c["+i+"]="+c[i]);
// }
}
}