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 |
帮忙看看,我的为什么是WRONG ANSWER啊?#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator