上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 38 下一页
摘要: https://nanti.jisuanke.com/t/41399 题目大意: 有n个灯,m次操作,每次修改[l,r]内的灯,(off - on ,on - off),问最后有几盏灯亮着. 换种说法:n个点m个区间,每次区间内的数+1,最后n个点中计数为奇数的点的个数就是答案。 刚开始没注意,直接 阅读全文
posted @ 2019-09-16 00:16 jiamian22 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 先粘上我入门时看的博客(下面部分摘自该博客): https://www.cnblogs.com/xenny/p/9739600.html 下面是我粘上以供自己复习的点: 树状数组的优点和缺点 修改和查询的复杂度都是O(logN),而且相比线段树系数要少很多,比传统数组要快,而且容易写。 缺点是遇到复 阅读全文
posted @ 2019-09-16 00:02 jiamian22 阅读(279) 评论(0) 推荐(0) 编辑
摘要: https://nanti.jisuanke.com/t/41422 题目大意: 给出n和b,求1到n,各数在b进制下各位数之和的总和。 直接暴力模拟,TLE。。 没想到是要打表。。。还是太菜了。 阅读全文
posted @ 2019-09-15 23:48 jiamian22 阅读(327) 评论(0) 推荐(0) 编辑
摘要: [USACO09MAR]向右看齐Look Up(单调栈、在线处理) https://www.luogu.org/problem/P2947 题目描述 Farmer John's N (1 <= N <= 100,000) cows, conveniently numbered 1..N, are o 阅读全文
posted @ 2019-09-09 23:52 jiamian22 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 链接:https://ac.nowcoder.com/acm/contest/1086/C 题目描述 "Never a borrower nor a lender be." O how Bessie wishes she had taken that advice! She has borrowed 阅读全文
posted @ 2019-09-09 23:22 jiamian22 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 链接:https://ac.nowcoder.com/acm/contest/1086/F来源:牛客网 题目描述 A full moon casts some sort of spell on the cows and, like their cousins the wolves and coyot 阅读全文
posted @ 2019-09-09 23:00 jiamian22 阅读(258) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1828 Time Limit: 6000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Problem Description A 阅读全文
posted @ 2019-09-05 01:24 jiamian22 阅读(227) 评论(0) 推荐(1) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=4553 Problem Description 寒假来了,又到了小明和女神们约会的季节。 小明虽为屌丝级码农,但非常活跃,女神们常常在小明网上的大段发言后热情回复“呵呵”,所以,小明的最爱就是和女神们约会。与此同时 阅读全文
posted @ 2019-09-03 00:04 jiamian22 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 2018 ACM-ICPC 宁夏 H.Fight Against Monsters(贪心) It is my great honour to introduce myself to you here. My name is Aloysius Benjy Cobweb Dartagnan Egbert 阅读全文
posted @ 2019-08-31 14:00 jiamian22 阅读(356) 评论(0) 推荐(0) 编辑
摘要: In cryptography, a Caesar cipher, also known as the shift cipher, is one of the most straightforward and most widely known encryption techniques.It is 阅读全文
posted @ 2019-08-31 13:53 jiamian22 阅读(320) 评论(0) 推荐(0) 编辑
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 38 下一页