摘要: #include int reverse(int num) { int ans=0; while(num>0) { ans=ans*10+num%10; num=num/10; } return ans; } int main() { int num; while(scanf("%d",&num)!=EOF)... 阅读全文
posted @ 2017-07-31 16:09 可馨517 阅读(172) 评论(0) 推荐(0)
摘要: #include #include #include using namespace std; int at,bt; int judge(int m,int n,int p) { if(at) return 0; if(m==1&&n==1){ at=1; return 0; } if(n==1) bt=1; whil... 阅读全文
posted @ 2017-07-31 16:08 可馨517 阅读(245) 评论(0) 推荐(0)