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

帮忙看看,我的为什么是WRONG ANSWER啊?

Posted by tigerqian at 2005-01-01 16:07:16 on Problem 2105
#include<stdio.h>
int fab(int a,int b,int c,int d,int e,int f,int g,int h){
	return(128*a+64*b+32*c+16*d+8*e+4*f+g*2+h);
}
void main(){
 int a[32],b[4],i,j,n,k;
 scanf("%d",&n);scanf("\n");
 for(k=0;k<n;k++){ 
  for(i=31;i>=0;i--)
   scanf("%d",&a[i]);
  for(j=4;j>=1;j--){
   b[j-1]=fab(a[8*j-1],a[8*j-2],a[8*j-3],a[8*j-4],a[8*j-5],a[8*j-6],a[8*j-7],a[8*j-8]);
   printf("%d.",b[j-1]);
  }
  printf("\n");
 }
}



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