上一页 1 2 3 4 5 6 7 8 9 10 ··· 22 下一页
摘要: In English, we have a concept called root, which can be followed by some other words to form another longer word - let's call this word successor. For 阅读全文
posted @ 2017-07-23 13:46 perplex 阅读(145) 评论(0) 推荐(0) 编辑
摘要: The rotation game uses a # shaped board, which can hold 24 pieces of square blocks (see Fig.1). The blocks are marked with symbols 1, 2 and 3, with ex 阅读全文
posted @ 2017-07-20 21:40 perplex 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 《Journey to the West》(also 《Monkey》) is one of the Four Great Classical Novels of Chinese literature. It was written by Wu Cheng'en during the Ming Dy 阅读全文
posted @ 2017-07-20 19:33 perplex 阅读(198) 评论(0) 推荐(0) 编辑
摘要: You are given two pots, having the volume of A and B liters respectively. The following operations can be performed: Write a program to find the short 阅读全文
posted @ 2017-07-20 15:22 perplex 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 将正整数n 表示成一系列正整数之和,n=n1+n2+…+nk, 其中n1>=n2>=…>=nk>=1 ,k>=1 。正整数n 的这种表示称为正整数n 的划分。 输入标准的输入包含若干组测试数据。每组测试数据是一行输入数据,包括两个整数N 和 K。 (0 < N <= 50, 0 < K <= N)输 阅读全文
posted @ 2017-07-19 23:10 perplex 阅读(438) 评论(0) 推荐(0) 编辑
摘要: 司令部的将军们打算在N*M的网格地图上部署他们的炮兵部队。一个N*M的地图由N行M列组成,地图的每一格可能是山地(用"H" 表示),也可能是平原(用"P"表示),如下图。在每一格平原地形上最多可以布置一支炮兵部队(山地上不能够部署炮兵部队);一支炮兵部队在地图上的攻击范围如图中黑色区域所示: 如果在 阅读全文
posted @ 2017-07-19 23:04 perplex 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 给定n个1到9的数字,要求在数字之间摆放m个加号(加号两边必须有数字),使得所得到的加法表达式的值最小,并输出该值。例如,在1234中摆放1个加号,最好的摆法就是12+34,和为36 输入有不超过15组数据每组数据两行。第一行是整数m,表示有m个加号要放( 0<=m<=50)第二行是若干个数字。数字 阅读全文
posted @ 2017-07-19 16:21 perplex 阅读(953) 评论(0) 推荐(2) 编辑
摘要: Problem Description X is a fully prosperous country, especially known for its complicated transportation networks. But recently, for the sake of bette 阅读全文
posted @ 2017-07-18 17:43 perplex 阅读(207) 评论(0) 推荐(0) 编辑
摘要: python打包比起C++真的是很麻烦的一件事……小学期作品是拿python写的,用的还是3.6,pyinstaller不支持,只好学习了一下cxfreeze的打包方法。 一、安装 安装cxfreeze只要在cmd下输入 pip install cx_freeze即可。之后在python根目录下找到 阅读全文
posted @ 2017-07-18 14:31 perplex 阅读(941) 评论(0) 推荐(0) 编辑
摘要: 题目地址 读入二进制数及转换的方法。 e.g. bitset<16> x; cin>>x; cout<<x.to_ulong()<<endl; 阅读全文
posted @ 2017-07-17 23:46 perplex 阅读(208) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 22 下一页