摘要: Problem Description Given an positive integer A (1 #include #include #include #include #include #include using namespace std;int lowbit(int x){ re... 阅读全文
posted @ 2015-11-16 21:40 (慎独) 阅读(120) 评论(0) 推荐(0) 编辑
摘要: Problem Description N个气球排成一排,从左到右依次编号为1,2,3....N.每次给定2个整数a b(a #include #include #include #include #include #include using namespace std;int a[1000... 阅读全文
posted @ 2015-11-16 21:04 (慎独) 阅读(120) 评论(0) 推荐(0) 编辑
摘要: Problem Description 一个正整数,如果从左向右读(称之为正序数)和从右向左读(称之为倒序数)是一样的,这样的数就叫回文数。任取一个正整数,如果不是回文数,将该数与他的倒序数相加,若其和不是回文数,则重复上述步骤,一直到获得回文数为止。例如:68变成154(68+86),再变成6... 阅读全文
posted @ 2015-11-16 13:58 (慎独) 阅读(279) 评论(0) 推荐(0) 编辑
摘要: Problem Description 读入两个小于100的正整数A和B,计算A+B. 需要注意的是:A和B的每一位数字由对应的英文单词给出. Input 测试输入包含若干测试用例,每个测试用例占一行,格式为"A + B =",相邻两字符串有一个空格间隔.当A和B同时为0时输入结束,相应的结... 阅读全文
posted @ 2015-11-16 13:10 (慎独) 阅读(122) 评论(0) 推荐(0) 编辑