摘要: 判断整除 链接:http://ybt.ssoier.cn:8088/problem_show.php?pid=1195 【题目描述】 一个给定的正整数序列,在每个数之前都插入+号或-号后计算它们的和。比如序列:1、2、4共有8种可能的序列: (+1) + (+2) + (+4) = 7 (+1) + 阅读全文
posted @ 2017-09-16 10:58 Ed_Sheeran 阅读(349) 评论(0) 推荐(0) 编辑
摘要: 移动路线 链接:http://ybt.ssoier.cn:8088/problem_show.php?pid=1194 【题目描述】 X桌子上有一个m行n列的方格矩阵,将每个方格用坐标表示,行坐标从下到上依次递增,列坐标从左至右依次递增,左下角方格的坐标为(1,1),则右上角方格的坐标为(m,n)。 阅读全文
posted @ 2017-09-16 10:54 Ed_Sheeran 阅读(354) 评论(0) 推荐(0) 编辑
摘要: 上台阶 链接:http://ybt.ssoier.cn:8088/problem_show.php?pid=1190 【题目描述】 楼梯有n(100>n>0)阶台阶,上楼时可以一步上1阶,也可以一步上2阶,也可以一步上3阶,编程计算共有多少种不同的走法。 【输入】 输入的每一行包括一组测试数据,即为 阅读全文
posted @ 2017-09-16 10:49 Ed_Sheeran 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 1625 数字金字塔 链接:http://codevs.cn/problem/1625/ USACO 时间限制: 1 s 空间限制: 128000 KB 1625 数字金字塔 链接:http://codevs.cn/problem/1625/ USACO 1625 数字金字塔 链接:http://c 阅读全文
posted @ 2017-09-02 11:59 Ed_Sheeran 阅读(241) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std; int mp[105][105]; int main(){ for(int i=2;i=10&&i<100)m=100; else m=1000; if(t%m==i)cout<<i<<endl; } } 阅读全文
posted @ 2017-08-30 19:32 Ed_Sheeran 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 3415 最小和 链接:http://codevs.cn/problem/3415/ CodeVS原创 时间限制: 1 s 空间限制: 64000 KB 3415 最小和 链接:http://codevs.cn/problem/3415/ CodeVS原创 3415 最小和 链接:http://co 阅读全文
posted @ 2017-08-30 18:57 Ed_Sheeran 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 1067 机器翻译 链接:http://codevs.cn/problem/1067/ 2010年NOIP全国联赛提高组 时间限制: 1 s 空间限制: 128000 KB 1067 机器翻译 链接:http://codevs.cn/problem/1067/ 2010年NOIP全国联赛提高组 10 阅读全文
posted @ 2017-08-30 18:46 Ed_Sheeran 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 1860 最大数 链接:http://codevs.cn/problem/1860/ 1998年NOIP全国联赛提高组 时间限制: 1 s 空间限制: 128000 KB 1860 最大数 链接:http://codevs.cn/problem/1860/ 1998年NOIP全国联赛提高组 1860 阅读全文
posted @ 2017-08-30 18:42 Ed_Sheeran 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 1164 统计数字 链接:http://codevs.cn/problem/1164/ 2007年NOIP全国联赛提高组 时间限制: 1 s 空间限制: 128000 KB 1164 统计数字 链接:http://codevs.cn/problem/1164/ 2007年NOIP全国联赛提高组 11 阅读全文
posted @ 2017-08-30 18:35 Ed_Sheeran 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 1063 合并果子 链接:http://codevs.cn/problem/1063/ 2004年NOIP全国联赛普及组 时间限制: 1 s 空间限制: 128000 KB 1063 合并果子 链接:http://codevs.cn/problem/1063/ 2004年NOIP全国联赛普及组 10 阅读全文
posted @ 2017-08-30 18:28 Ed_Sheeran 阅读(163) 评论(0) 推荐(0) 编辑