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 |
为啥在我电脑没结果 就AC了啊 贴个代码啊 超短#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator