| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
直接把f(0),f(1),f(2)看做整体,代入法超简单~~import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner cin=new Scanner(System.in);
while(cin.hasNext()){
int f0=cin.nextInt();
int f1=cin.nextInt();
int f2=cin.nextInt();
int f3=f0-3*f1+3*f2;
int f4=3*f0-8*f1+6*f2;
int f5=6*f0-15*f1+10*f2;
System.out.println(f3+" "+f4+" "+f5);
}
}}
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator