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 |
二阶等差数列#include <stdio.h> int main() { int i, a, b, c, d1, d2, x, y, z; while(~scanf("%d%d%d", &a, &b, &c)){ d1 = c - b, d2 = d1 - b + a; d1 += d2, x = d1 + c; d1 += d2, y = d1 + x; d1 += d2, z = d1 + y; printf("%d %d %d\n", x, y, z); } return 0; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator