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 |
擦!悲剧,就一个\n没弄上去 就一直PE。。#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator