class Rectangle {
private int a,b;
public Rectangle(int aa, int bb) {a=aa; b=bb;}
public int area() {return a*b;}
public int girth() {return 2*(a+b);}
}
public class XXK3 extends Rectangle {
private int c;
public XXK3(int aa, int bb, int cc) {super(aa,bb); c=cc;}
public int volume() {return area()*c;}
public int arrisLength() {return 2*girth()+4*c;}
public static void main(String[] args) {
XXK3 x=new XXK3(2,3,4);
int y1=x.volume();
int y2=x.arrisLength();
System.out.println(y1+", "+y2);
}
}
Public class Test {
Public static void main(String[] args) {
Vector teamList = new Vector();
teamList.add("Z");
teamList.add("L");
teamList.add("W");
teamList.remove(0);
teamList.remove(0);
System.out.println(teamList.size()+","+teamList.get(0));
}
}
public class XXK4 {
public static void main(String[] args) {
int [][]a={{2,5,8},{3,6,9},{4,5,6}};
int []b=new int[3];
int i,j;
for(i=0; i<a.length; i++)
for(j=0; j<a[i].length; j++)
b[i]+=a[i][j];
for(i=0; i<b.length; i++)
System.out.print(b[i]+" ");
}
}
class ABC {
int a,b;
public ABC(int a, int b) {this.a=a; this.b=b;}
public int compareTo(ABC x) {return a*b-x.a*x.b;}
}
public class XXK5 {
public static void main(String[] args) {
int [][]d={{3,8},{4,6},{5,6},{2,9},{6,7},{5,8}};
ABC []ar=new ABC[d.length];
int i,k=0;
for(i=0; i<ar.length; i++)
ar[i]=new ABC(d[i][0],d[i][1]);
for(i=1; i<ar.length; i++)
if(ar[i].compareTo(ar[k])>0) k=i;
System.out.println("k="+k);
}
}
class ABC {
String name;
double price;
public ABC(String na, double pr) {name=na; price=pr;}
public int compareTo(ABC x) {
if(name.compareTo(x.name)>0) return 1;
if(name.compareTo(x.name)<0) return -1;
else return 0;
}
}
public class XXK5 {
public static void main(String[] args) {
String []s={"apple", "pear", "tangerme", "banana", "grape"};
double []d={3.8, 2.5, 3.2, 4.3, 5.2};
ABC []ar=new ABC[s.length];
int i,k=0;
for(i=0; i<ar.length; i++)
ar[i]=new ABC(s[i],d[i]);
for(i=1; i<ar.length; i++)
if(ar[i].compareTo(ar[k])>0) k=i;
System.out.println(ar[k].name+" "+ar[k].price);
}
}
public class XXK2 {
private final int a;
public XXK2(int a) {this.a=a;}
public int f1(int x) {
if(x%2==1) return 2*(a+x);
else return 3*a+x;
}
public int get() {return a;}
public static void main(String[] args) {
XXK2 x=new XXK2(8);
int y=x.f1(20);
y+=x.get();
System.out.println("y="+y);
}
}
public class XXK2 {
private int a; public XXK2(int aa) {a=aa;}
public int f1(int x) {
if(x%2==1) return 2*(a+x);
else return 3*a+x;
}
public int get() {return a;}
public static void main(String[] args) {
XXK2 x=new XXK2(5);
int y=x.f1(9);
y+=x.get()*x.get();
System.out.println("y="+y);
}
}
public class XXK2 {
private int a;
public XXK2() {a=3;}
public XXK2(int aa) {a=aa;}
public double f1() {
return 2*Math.pow(a,3)+a;
}
public static void main(String[] args) {
XXK2 x=new XXK2(), y=new XXK2(5);
System.out.println(x.f1()+", "+y.f1());
}
}
class Rectangle {
private int a,b;
public Rectangle(int aa, int bb) {a=aa; b=bb;}
public int area() {return a*b;}
public int girth() {return 2*(a+b);}
}
public class XXK3 extends Rectangle {
private int c;
public XXK3(int aa, int bb, int cc) {super(aa,bb); c=cc;}
public int volume() {return area()*c;}
public int arrisLength() {return 2*girth()+4*c;}
public static void main(String[] args) {
XXK3 x=new XXK3(2,3,4);
int y1=x.volume();
int y2=x.arrisLength();
System.out.println(y1+", "+y2);
}
}
public class SetTest {
public static void main(String[] args) {
HashSet hs = new HashSet();
boolean b1 = hs.add("a");
hs.add("b");
hs.add("c");
hs.add("d");
hs.add("d");
boolean b2 = hs.add("a");
System.out.println("size="+hs.size());
}
}
云南省湖泊中( )面积最大
①#include<iostream>
②using namespace std;
③void main( )
④{
⑤ int *p=new int[1];
⑥ p=9;
⑦ cout << *p <<endl;
⑧ delete[] p;
}
工期(月) 名称 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
…… |
|
月度完成工作量 |
450 |
1200 |
2600 |
2500 |
2400 |
2400 |
2500 |
2600 |
2700 |
2800 |
…… |
|
现金流入 |
315 |
840 |
1820 |
1750 |
1650 |
1680 |
1750 |
2210 |
2295 |
2380 |
…… |
|
现金流出 |
520 |
980 |
2200 |
2120 |
1500 |
1200 |
1400 |
1700 |
1500 |
2100 |
…… |
|
月净现金流量 |
|
|
|
|
|
|
|
|
|
|
|
|
累积净现金流量 |
|
|
|
|
|
|
|
|
|
|
|
截止2013年12月来,累积发成工程成本10395万元,处置废旧材料所得3.5万元,获得贷款资金800万元,施工进度奖励146万元。
内装修施工前,项目经理部发现建设单位提供的工程量清单中未包括一层公共区域地面面层子目,铺占面积1200㎡。因招标工程量清单中没有类似子目,于是项目经理按照市场价格信息重新组价,综合单价1200元/㎡,经现场专业监理工程师审核后上报建设单位。
2014年9月30日工程通过竣工验收,建设单位按照相关规定,提交了工程竣工验收备案表,工程竣工验收报告,人防及消防单位出具的验收文件,并获得规划,环保等部门出具的认可文件,在当地建设行政主管部门完成了相关备案工作。
()是指税法中规定征税的标的物,即对什么征税。
任何单位和个人不得转借、转让、代开发票。
– Susan, will you please go and empty that drawer?
–
一般认为,税收的特征是()。
“花儿、玩儿、幼儿、女儿”都是词根+词缀构成的派生式合成词。
下列人员中不属于建设工程从业人员的是( )
建筑工程中常见的行业标准代号“JGJ”表示( )。
建设工程施工合同的核心条件是发包人和承包人( )。
关于开标时间,下列说法正确的是( )。
对于中标通知书的法律效力,下列说法正确的是( )。
答案多选:建设法规的特征有( )
建设法律关系的变更主要是指协议变更。
软件测试贯穿于整个于软件生命周期,其测试的基本问题是( )
① 明确测试目标
② 确认测试对象
③ 建立测试生命周期
④ 制定和实施测试策略
⑤ 选择测试类型
⑥ 运用测试方法
public static void main(String[] args) {
int i=1, s=0;
while(true) {
if(i%2==0) s+=i;
if(i++>=10) break;
}
System.out.println("s="+s);
}
public static void main(String[] args) {
int c0=0, c1=0, c2=0;
for(int x=1; x<=20; x++) {
switch(x%3) {
case 0: c0++; break;
case 1: c1++; break;
case 2: c2++; break;
}
}
System.out.println("c0,c1,c2="+c0+","+c1+","+c2);
}
public class XXK2 {
private int a,b;
public XXK2(int aa, int bb) {a=aa; b=bb;}
public int f1(int x) {
if(x>10) return a+b+3*x;
else return a*b*x;
}
public static void main(String[] args) {
XXK2 x=new XXK2(3,4);
int y=x.f1(8);
System.out.println("y="+y);
}
}
abstract class Shape {
int a,b;
public Shape(int aa, int bb) {a=aa; b=bb;}
abstract public double area();
}
class Rectangle extends Shape {
public Rectangle(int aa, int bb) {super(aa,bb);}
public double area() {return a*b;}
}
class Triangle extends Shape {
public Triangle(int aa, int bb) {super(aa,bb);}
public double area() {return a*b/2;}
}
public class XXK3 {
public static void main(String[] args) {
Shape x,y;
x=new Rectangle(10,20);
y=new Triangle(10,15);
System.out.println(x.area()+", "+y.area());
}
}
public class XXK4 {
public static void main(String[] args) {
int []a={2,5,8,10,15,20};
int s=0;
for(int i=0; i<a.length; i++) s+=a[i];
System.out.println("s="+s);
}
}
public class XXK4 {
public static void main(String[] args) {
String []a={"xxk","weirong","xucong","xuxiaohua","baojuan"};
int m=0;
for(int i=0; i<a.length; i++) {
int n=a[i].length();
if(n>m) m=n;
}
System.out.println("m="+m);
}
}
interface Shape {
double area();
double girth();
}
class Rectangle implements Shape {
int a,b;
public Rectangle(int aa, int bb) {a=aa; b=bb;}
public double area() {return a*b;}
public double girth() {return 2*(a+b);}
}
public class XXK3 {
public static void main(String[] args) {
Shape x;
x=new Rectangle(5,8);
System.out.println(x.area()+", "+x.girth());
}
}
免费的网站请分享给朋友吧