上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 50 下一页
摘要: ##二分查找## HDU - 1053 很久之前做过的Huffman编码,用优先队列 1 #include<iostream> 2 #include<cstdio> 3 #include<cstring> 4 #include<queue> 5 6 using namespace std; 7 8 阅读全文
posted @ 2017-07-12 23:09 yijiull 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 上午终于考完最后一科了 接下来就要开始刷题了 前几天先快速的把之前基础的东西再巩固一下,一两个月没碰很多东西又忘了 而且,很多东西回顾起来,理解的也更深一些 【回溯】 【搜索】 n皇后问题 1 #include <cstdio> 2 #include <iostream> 3 #include <c 阅读全文
posted @ 2017-07-11 14:54 yijiull 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 补一些基础简单题purple7 UVA - 725 1 #include <cstdio> 2 #include <bits/stdc++.h> 3 using namespace std; 4 5 bool check(int x,int y) 6 { 7 int a[10]; 8 memset( 阅读全文
posted @ 2017-07-09 23:47 yijiull 阅读(146) 评论(0) 推荐(0) 编辑
摘要: UVA - 1103 还是没写好,,看的别人的 1 #include <iostream> 2 #include <cstdio> 3 #include <cmath> 4 #include <cstring> 5 #include <algorithm> 6 #include <cstdlib> 阅读全文
posted @ 2017-07-08 23:22 yijiull 阅读(113) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-06-28 00:21 yijiull 阅读(2) 评论(0) 推荐(0) 编辑
摘要: UVA 1593 学习了重定向。。。 1 //#define LOCAL 2 #include <bits/stdc++.h> 3 using namespace std; 4 vector<string> s[1005]; 5 int len[1850]; 6 7 int main(){ 8 #i 阅读全文
posted @ 2017-06-21 20:27 yijiull 阅读(169) 评论(0) 推荐(0) 编辑
摘要: (1)标准输入流cin:istream类的对象。(2)标准输出流cout:ostream类的对象。 (3)非缓冲型标准出错流cerr:ostream类的对象。(4)缓冲型标准出错流clog:ostream类的对象 (10)下列关于虚基类的描述,错误的是 A)设置虚基类的目的是为了消除二义性 B)虚基 阅读全文
posted @ 2017-06-21 11:41 yijiull 阅读(775) 评论(0) 推荐(0) 编辑
摘要: C++中的各种继承方式规则 1、C++中的继承方式有: public、private、protected三种(它们直接影响到派生类的成员、及其对象对基类成员访问的规则)。 (1)public(公有继承):继承时保持基类中各成员属性不变,并且基类中private成员被隐藏。派生类的成员只能访问基类中的 阅读全文
posted @ 2017-06-18 09:16 yijiull 阅读(97) 评论(0) 推荐(0) 编辑
摘要: UVA-1592 1 // UVa1592 Database 2 // Rujia Liu 3 // 本程序只是为了演示STL各种用法,效率较低。实践中一般用C字符串和哈希表来实现。 4 5 #include<iostream> 6 #include<cstdio> 7 #include<vecto 阅读全文
posted @ 2017-06-17 21:15 yijiull 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 链接:CF812 好久之前做的,掉了100多-_-|| 太忙了今天才来补题。。。。。。 A B 1 #include <cstdio> 2 #include <cstring> 3 #include <bits/stdc++.h> 4 using namespace std; 5 6 int dp[ 阅读全文
posted @ 2017-06-17 15:55 yijiull 阅读(234) 评论(0) 推荐(0) 编辑
上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 50 下一页