11 2018 档案

jichu
摘要:第 76 题 请编写函数 fun,其功能时:计算并输出当 x=1e-6); return sum; } 请编写函数 fun,该函数的功能是:删去一维数组中所有相同的数,使之只剩 一个。数组中的数已按由小到大的顺序排列,函数返回删除后数组中数据的个数。 int f(int *a,int n) { for(int i=0;i<n;i++){ ... 阅读全文

posted @ 2018-11-23 22:44 cltt 阅读(271) 评论(0) 推荐(0) 编辑

scanf
摘要:1 int a,b; 2 long c; 3 void fun(int a,int b,long *c) 4 {*c=(b%10)*1000+(a%10)*100+(b/10)*10+a/10;} 5 int main() 6 { 7 scanf("%d%d",&a,&b); 8 long *p=&c; 9 fun(a,b,p); 10 prin... 阅读全文

posted @ 2018-11-23 21:15 cltt 阅读(195) 评论(0) 推荐(0) 编辑

数位dp
摘要://hdu 2089 不要62 Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 60338 Accepted Submission(s): 238 阅读全文

posted @ 2018-11-18 11:22 cltt 阅读(208) 评论(0) 推荐(0) 编辑

hdu 5667
摘要:Sequence Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 2887 Accepted Submission(s): 969 Problem 阅读全文

posted @ 2018-11-17 21:11 cltt 阅读(124) 评论(0) 推荐(0) 编辑

华东交通大学2018年ACM“双基”程序设计竞赛 K
摘要:MIKU酱是个玩游戏氪金的人,游戏公司给她制定了新的规则,如果想从关卡i到关卡j,你需要交一些钱就可以了,但同时,MIKU酱的爸爸zjw很爱她,所以她可以每过一关就向她爸要一次钱,但她爸每次给他的钱是固定的,MIKU酱是个不会节省的女孩,哪怕每次多出来的钱,她也会拿去买肥宅快乐水,所以每次要的钱一定 阅读全文

posted @ 2018-11-17 20:00 cltt 阅读(269) 评论(0) 推荐(0) 编辑

华东交通大学2018年ACM“双基”程序设计竞赛 D
摘要:摸鱼之王MIKU酱想去埃及玩,需要一个人陪同。小新和小磊都想陪MIKU酱一起去,但名额只有一个。所以小磊和小新决定用一个小游戏来决定谁和MIKU酱出去玩。 游戏的道具是21张塔罗牌,塔罗牌分为大牌和小牌,其中大牌有22张,分别是编号为0的愚者(The Fool)和编号为21的世界(The World 阅读全文

posted @ 2018-11-17 19:59 cltt 阅读(278) 评论(0) 推荐(0) 编辑

map
摘要:1 map和set两种容器的底层结构都是红黑树,所以容器中不会出现相同的元素, 2 因此count()的结果只能为0和1,可以以此来判断键值元素是否存在 3 (当然也可以使用find()方法判断键值是否存在)。 4 拿map举例,find()方法返回值是一个迭代器, 5 成功返回迭代器指向要查找的元素,失败返回的迭代器指向end。 6 count()方法返回值是一个整数,1表示有这个... 阅读全文

posted @ 2018-11-17 11:01 cltt 阅读(158) 评论(0) 推荐(0) 编辑

次小生成树
摘要:1 /* 2 最小生成树唯一吗,求出次小生成树 3 枚举每个非最小生成树里面的边, 4 加上该边后一定会形成环 5 最小生成树+该边-最小生成树在环中的最长边 6 */ 7 /* 8 #include 9 #include 10 #include 11 #include 12 #include 13 using namespace std; 14 #define ph... 阅读全文

posted @ 2018-11-17 10:53 cltt 阅读(135) 评论(0) 推荐(0) 编辑

set
摘要:1 sets1; 2 multisets2; 3 int x; 4 for(int i=1;is; 3 int main() 4 { 5 for(int i=1;ise; 4 set::iterator it1,it2,it3; 5 int main() 6 { 7 for(int i=1;i<=5;i++){ ... 阅读全文

posted @ 2018-11-17 10:52 cltt 阅读(155) 评论(0) 推荐(0) 编辑

指针
摘要:1 p:指针 2 p->num 和(*p).num 等价 阅读全文

posted @ 2018-11-15 22:45 cltt 阅读(187) 评论(0) 推荐(0) 编辑

引用
摘要:1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 using namespace std; 10 typedef long long ll; 11 const int inf=0x3f3f3f3f; 12 t... 阅读全文

posted @ 2018-11-15 20:20 cltt 阅读(209) 评论(0) 推荐(0) 编辑

字符串函数
摘要:1 #include 2 #include 3 #include 4 #include 5 #define f(x) x*x*x 6 using namespace std; 7 char s[10],p[10]; 8 int main() 9 { 10 scanf("%s%s",s,p); 11 /* 12 strcat(s,p); 13 ... 阅读全文

posted @ 2018-11-15 20:19 cltt 阅读(145) 评论(0) 推荐(0) 编辑

公钥和私钥
摘要:https://blog.csdn.net/magiclyj/article/details/71023762 阅读全文

posted @ 2018-11-12 09:14 cltt 阅读(105) 评论(0) 推荐(0) 编辑

函数
摘要:select left('hello',3); select ltrim(rtrim(' hello '));--前后都无空格 select substring ('hello',2,4); 阅读全文

posted @ 2018-11-11 21:06 cltt 阅读(104) 评论(0) 推荐(0) 编辑

基础小问题
摘要:1.将数据放到表中,表在放到库中 2.一个数据库中可有多个表,每个表都有一个名字,用来表示自己。表明具有唯一性 3.表具有一些特性,这些特性定义了数据在表中如何存储 4.表由列组成,我们也成为字段,所有表都是由一个或多个列组成表中数据按行存储, 更改完my.ini (配置文件后需要重启服务器) my 阅读全文

posted @ 2018-11-10 17:05 cltt 阅读(164) 评论(0) 推荐(0) 编辑

基础
摘要:1 #显示当前运行的端口 netstat -ano 阅读全文

posted @ 2018-11-08 17:35 cltt 阅读(145) 评论(0) 推荐(0) 编辑

poj 2021
摘要:Relative Relatives Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 3886 Accepted: 1723 Description Today is Ted's 100th birthday. A few wee 阅读全文

posted @ 2018-11-04 22:09 cltt 阅读(190) 评论(0) 推荐(0) 编辑

树状数组的修改+查询
摘要:Color the ball Time Limit: 9000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 29305 Accepted Submission(s): 1426 阅读全文

posted @ 2018-11-03 22:38 cltt 阅读(274) 评论(0) 推荐(0) 编辑

poj 1182
摘要:食物链 Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 94453 Accepted: 28515 Description 动物王国中有三类动物A,B,C,这三类动物的食物链构成了有趣的环形。A吃B, B吃C,C吃A。 现有N个动 阅读全文

posted @ 2018-11-03 20:38 cltt 阅读(154) 评论(0) 推荐(0) 编辑

requests 模块
摘要:#http://www.cnblogs.com/wupeiqi/articles/6283017.html #参考博客 #如何查看API文档 #选中对应的函数后Ctrl+B 1 ''' 2 标志 :From Data 3 请求体 : name = alex&age=18 4 data = { 5 'name':'alex', 6 'age':'1... 阅读全文

posted @ 2018-11-01 22:09 cltt 阅读(116) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示