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 90401127 at 2004-11-28 20:28:10 on Problem 1647
我的原码如下:#include <stdio.h>

int a,b,c,d,e,f;
int x,y,z,i;
int u[4]={0,5,3,1},t[4]={0,7,6,5};

void main(){
    scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f);
    while (!(a==0 && b==0 && c==0 && d==0 && e==0 && f==0)){
        z=f+e+d+(c+3)/4;
        y=5*d+u[c%4]; x=11*e+t[c%4];
        if (y < b){
            i = (b-y+8)/9;
            z = z+i; 
            x = x+4*(9*i-(b-y));
        }else x = x+4*(y-b);
        if (x < a) z = z+(a-x+35)/36;
        printf("%d\n",z);
        scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f);
    }
}编译没问题,为什么一提交就是编译错误呢?

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