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

为啥在我电脑没结果 就AC了啊 贴个代码啊 超短

Posted by Cunch at 2009-11-05 22:04:11 on Problem 2316
#include<stdio.h>
#include<string.h>

int main(){
  int i;
  char str[100],a[100];

  gets(str);

  while(scanf("%s",a)!=EOF){
    i=0;
    while(a[i]!='\0'){
      str[i]=(str[i]+a[i]-2*'0')%10+'0';
      i++;
    }

  }

  printf("%s\n",str);

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