摘要:
首先找规律知道|s(47)-s(74)|<=1|s(47)-s(74)|==0 47474……4或 74747……7|s(47)-s(74)|==1会是4747……47或是7474……74最终由是s(4),s(7)决定View Code #include<stdio.h>#include<math.h>int main(){ int a,b,c,d; while(scanf("%d%d%d%d",&a,&b,&c,&d)!=EOF) { int i,j; if(abs(c-d)>1) { printf(&q 阅读全文
posted @ 2012-02-02 15:04 huhuuu 阅读(221) 评论(0) 推荐(0) 编辑