#acm#Series Determination

这里写图片描述

import java.util.Scanner;


public class Main_1009 {

    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int f0,f1,f2;
        int a,b,c;
        while(input.hasNext()){
            f0 = input.nextInt();
            f1 = input.nextInt();
            f2 = input.nextInt();
            c=f0;
            a=(f2+f0-2*f1)/2;
            b=f1-a-f0;
            //节约利用
            f0 = a*9+b*3+c;
            f1 = a*16+b*4+c;
            f2 = a*25+b*5+c;
            System.out.println(f0+" "+f1+" "+f2);
        }
    }

}

猜你喜欢

转载自blog.csdn.net/floris_lovelace/article/details/80534396