上一页 1 ··· 4 5 6 7 8 9 下一页
摘要: 如何在博客的侧边栏中设置访问人数和他们的国家 1. 生成数字 点击进入网站:http://www.amazingcounters.com/samples.php 选择自己喜欢的计数样式 点击喜欢的样式后进入页面 将siteURL填入博客的网址 生成代码 复制粘贴到博客园后台管理的侧边栏中去 2.生成 阅读全文
posted @ 2019-07-17 00:16 test1024 阅读(389) 评论(2) 推荐(1)
摘要: 自己搭建了一个博客用hugo,后因自己搭建的博客上传文章,搞一些东西不方便,就创建了现在这个博客,不过还是把如何搭建hugo的过程记录以下。 Ubuntu下的操作 1. 下载Git 打开终端 Ctrl+Alt+T 就可打开 下载Git 设置用户名和邮箱 查看设置的用户名和密码 2.下载Hugo 方法 阅读全文
posted @ 2019-07-16 23:04 test1024 阅读(790) 评论(0) 推荐(0)
摘要: 题解题目:CodeForces - 602B CodeForces - 717E CodeForces - 746G Codeforce 602B Approximating a Constant Range When Xellos was doing a practice course in un 阅读全文
posted @ 2019-02-26 22:42 test1024 阅读(303) 评论(0) 推荐(0)
摘要: 巴什博弈巴什博弈 nim游戏 A与B轮流取石子,有n颗石子,每次取1~3个。取走最后一颗石子的人胜利。 A,B均采用最优策略 当n为0,4, 8, 12…时,B胜利。其他情况,A胜利。 当n为0时,A取不出石子,A输 当n为4时,A取1~3,B取4-numA, A取不出,A输 … B每次取(numB 阅读全文
posted @ 2018-12-09 23:30 test1024 阅读(365) 评论(0) 推荐(0)
摘要: A. Vasya and Book 题意: 给四个数据 n, x, y, d。 n为书总共多少页,x为当前页数,y为目标页数,一次必须翻d页,但是范围在1~n,询问最少翻的次数 情况 1. abs(x-y)%d == 0 正好到达 则输出 abs(x-y)/d 2.往前翻到 1 此时为1 到 y 。 阅读全文
posted @ 2018-12-01 11:24 test1024 阅读(104) 评论(0) 推荐(0)
摘要: set insert到容器中后自动从小到大排序 元素不会重复插入 输出用迭代器 正向iterator 反向reverse_iterator it, s.begin(), s.end() 均为地址 输出加* 1 插入 s.insert(); 2 获得当前元素个数 s.size(); 3 查找set中元 阅读全文
posted @ 2018-10-18 11:33 test1024 阅读(125) 评论(0) 推荐(0)
摘要: A 棋盘问题 #include<cstdio> #include<cmath> #include<cstring> #include<algorithm> using namespace std; char mp[12][12]; int n, k, ans, b[12], m; void dfs( 阅读全文
posted @ 2018-09-17 12:16 test1024 阅读(130) 评论(0) 推荐(0)
摘要: 传送门 树状数组,一个树状数组会T, 采用两个树状数组。 一个存a[1] + a[2] + a[3] + ... a[n -1] + a[n] ; 另一个存n * a[1] + (n-1) * a[2] + (n-2) * a[3] +... 2 * a[n-1] + a[n] ; ans1 = g 阅读全文
posted @ 2018-09-11 21:57 test1024 阅读(86) 评论(0) 推荐(0)
摘要: 输入:n, k题目:给n个数字,有多少组数字加起来等于k使用dfs深搜, 代码如下#include<cstdio> #include<cmath> #include<iostream> #include<cstring> #include<cstdlib> #include<string> #inc 阅读全文
posted @ 2018-05-06 21:44 test1024 阅读(144) 评论(0) 推荐(0)
摘要: 题目链接Alice lives in the country where people like to make friends. The friendship is bidirectional and if any two person have no less than k friends in 阅读全文
posted @ 2018-04-26 19:49 test1024 阅读(88) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 下一页