- 博客(10)
- 资源 (1)
- 收藏
- 关注
原创 UVA10474
#include #include #include using namespace std; const int MAXN = 10000; int n,m; int a[MAXN]; int times = 0; int b,location; int main() { while ((scanf("%d%d",&n,&m) != EOF),m+n) {
2016-03-17 18:54:51 252
原创 while函数输入小结
1.知识点1: scanf函数的返回值可以简单理解为为输入变量的个数: Both scanf and wscanf return the number of fields successfully converted and assigned; the return value does not include fields that were read but not assigned. A
2016-03-17 18:10:25 1390
原创 如何修改hosts
/****************************************** 上网找了一些简单的方法——修改host命令,总结如下。 *******************************************/ 方法一:直接修改 1.打开终端,修改hosts文件权限:sodu chmod 777 /etc/hosts 常用修改权限的命令:(首先要进入所在
2016-03-16 18:40:40 1459
原创 poj_3278_Catch That Cow广搜
Catch That Cow Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 68714 Accepted: 21637 Description Farmer John has been informed of the location of a fugitiv
2016-03-16 09:51:03 286
原创 poj_1190_剪枝训练
生日蛋糕 Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 16428 Accepted: 5836 Description 7月17日是Mr.W的生日,ACM-THU为此要制作一个体积为Nπ的M层生日蛋糕,每层都是一个圆柱体。 设从下往上数第i(1 Ri+
2016-03-14 23:14:27 366
原创 poj_1724_深搜之二维不定长数组的使用
ROADS Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 12371 Accepted: 4568 Description N cities named with numbers 1 ... N are connected with one-way roads
2016-03-13 14:13:53 375
原创 poj1011 _经典搜索
Sticks Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 133220 Accepted: 31285 Description George took sticks of the same length and cut them randomly until
2016-03-12 16:58:10 386
原创 百炼城堡问题-栈的解法
根据ppt的提示,我这个菜鸟又一步一步完成了栈的解法 /* * Filename: 1.cpp * Desciption: Desciption * Created: 2016-03-10 * Author: yunlong Wang [mail:17744454343@163.com] * */ #include #include #include #inc
2016-03-10 17:51:00 514
原创 百练城堡问题
这一题让我深刻明白了一个道理:运算符‘&’的表达式的优先级低于‘==’和‘!=’!!! 写完后怎么也改不对,参照pdf上的的表达式一句一句替换,最后终于让我找到了错误所在。。。 /////////////////////////////////////////////////////////////////////////////////////////////////////////////
2016-03-10 17:18:36 598
原创 poj 2676 深搜之sudo
Sudoku Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 16919 Accepted: 8242 Special Judge Description Sudoku is a very simple task. A square table with
2016-03-09 21:42:41 550
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人