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

擦!悲剧,就一个\n没弄上去 就一直PE。。

Posted by 2010302505 at 2012-07-10 23:36:03 on Problem 2583
#include <stdio.h>
int main()
{
	int A,B,C,f0,f1,f2,f3,f4,f5;
	while(scanf("%d %d %d",&f0,&f1,&f2)==3)
	{
		C=f0;
		A=(f2-2*f1+C)/2;
		B=f1-A-C;
		f3=9*A+3*B+C;;
		f4=16*A+4*B+C;
		f5=25*A+5*B+C;
		printf("%d %d %d\n",f3,f4,f5);	
	}
	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