Untitled
raw download clone
TEXT
views 36
,
size 436 b
//10786
#include<stdio.h>

int main(void)

{
    int a, b, c, d, a_1, a_5;
    int r, r_1, r_5;
    scanf("%d%d%d", &a, &b, &c);

    if(b/a==c/b && b/a!=0)
    {
        r = b/a;
        r_1 = a/r;
        r_5 = c*r;
        printf("%d%d", r_1, r_5);
    }

    else if((b-a)==(c-b))
    {
       d = b-a;
       a_1 = a-d;
       a_5 = c+d;
       printf("%d %d", a_1, a_5);//等差
    }
    return 0;
}
close fullscreen
Login or Register to edit or fork this paste. It's free.