Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

二阶等差数列

Posted by lyyshp at 2019-06-12 10:36:52 on Problem 2583
#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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator