摘要: https://nanti.jisuanke.com/t/43375 简单的二进制变换 可以理解为当前二进制数 自增1 到2^(n-1)需要的操作数 注意输出格式 代码 #include<iostream> #include<cstdio> #include<cstring> #include<al 阅读全文
posted @ 2020-03-08 17:25 YukiRinLL 阅读(118) 评论(0) 推荐(0) 编辑
摘要: https://nanti.jisuanke.com/t/43374 题意 判断像素矩阵中像素围成的封闭区域的个数 思路 对于每一个像素,检查周围是否有像素形成相连 从当前下一个未标记的像素开始进行搜索,搜索结果作为下一个节点进行搜索,在搜索的同时进行染色 遇到已经染色的像素,判断为一个封闭空间 代 阅读全文
posted @ 2020-03-08 17:20 YukiRinLL 阅读(129) 评论(0) 推荐(0) 编辑
摘要: https://nanti.jisuanke.com/t/43390 题意 几何中心重合的 圆 和 正方形 给定正四边形边长 a 和 圆的半径 r,求重合面积 简单计算几何问题 思路 分块计算 注意精度和舍入问题 代码 #include<iostream> #include<cstdio> #inc 阅读全文
posted @ 2020-03-08 17:12 YukiRinLL 阅读(131) 评论(0) 推荐(0) 编辑
摘要: https://nanti.jisuanke.com/t/43388 题意 一共有 m 个队伍(无用数据), n 块蛋糕,对蛋糕进行 t 次操作 每次操作:给定当前队伍的人数 num ,对当前蛋糕数量 n 进行需求: 如果 n>num,num-=n; 否则,把所有的蛋糕切成两半(即n*=2)之后,再 阅读全文
posted @ 2020-03-08 17:04 YukiRinLL 阅读(108) 评论(0) 推荐(0) 编辑
摘要: https://nanti.jisuanke.com/t/43387 题意 奥运会,分别给出RU和US两国的 金牌 银牌 铜牌 数目 优先度 金牌>银牌>铜牌,其中一种相同则比较下一种,多的一方在color上获胜 总的奖牌数多的一方在count上获胜 判断US能在哪种方式上获胜 水题 代码 #inc 阅读全文
posted @ 2020-03-08 16:54 YukiRinLL 阅读(135) 评论(0) 推荐(0) 编辑
摘要: Find the Twins 阅读全文
posted @ 2020-03-08 16:45 YukiRinLL 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 2020 CDUT寒假集训第一场(思维+dp专场)H 阅读全文
posted @ 2020-02-16 16:33 YukiRinLL 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 2020 CDUT寒假集训第一场(思维+dp专场)G 阅读全文
posted @ 2020-02-16 16:24 YukiRinLL 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 2020 CDUT寒假集训第一场(思维+dp专场)B 阅读全文
posted @ 2020-02-16 16:13 YukiRinLL 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 2020 CDUT寒假集训第一场(思维+dp专场)A 阅读全文
posted @ 2020-02-16 15:43 YukiRinLL 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 一个计算迟到早退违纪扣分的东西 题意简单明了 情况有点多,分各种情况讨论,有点麻烦但是难度不大 一次性写的所以代码很乱,就当留给自己看吧 上代码: #include<iostream> #include<cstdio> #include<cstring> #include<algorithm> #i 阅读全文
posted @ 2019-11-29 10:27 YukiRinLL 阅读(138) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/gym/101775/problem/M The 2018 World Cup will be hosted in Russia. 32 national teams will be divided into 8 groups. Each group co 阅读全文
posted @ 2019-11-29 10:26 YukiRinLL 阅读(161) 评论(0) 推荐(0) 编辑
摘要: https://vjudge.net/contest/332199#problem/J 水题,直接上代码 #include<iostream> #include<cstdio> #include<cstring> #include<algorithm> #include<bitset> #inclu 阅读全文
posted @ 2019-11-29 10:26 YukiRinLL 阅读(109) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/1260/problem/A A. Heating time limit per test 1 second memory limit per test 256 megabytes input standard input output s 阅读全文
posted @ 2019-11-28 10:56 YukiRinLL 阅读(258) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/1260/problem/B B. Obtain Two Zeroes time limit per test 1 second memory limit per test 256 megabytes input standard inpu 阅读全文
posted @ 2019-11-28 10:45 YukiRinLL 阅读(151) 评论(0) 推荐(0) 编辑
摘要: https://vjudge.net/contest/314399#problem/B Anton has a positive integer nn, however, it quite looks like a mess, so he wants to make it beautiful aft 阅读全文
posted @ 2019-08-05 10:53 YukiRinLL 阅读(186) 评论(0) 推荐(0) 编辑
摘要: https://vjudge.net/contest/310812#problem/F 给定一棵n 个点的树,每个点有权值。两个人玩游戏,先手需要占领若干不相邻的点,然后后手占领剩下所有点。每个人的得分为占领的点权异或和,分高的获胜。问最优策略下游戏的结果。1 ≤ n ≤ 105。Shortest 阅读全文
posted @ 2019-08-05 10:39 YukiRinLL 阅读(125) 评论(0) 推荐(0) 编辑
摘要: https://vjudge.net/contest/314399#problem/E Edward is a worker for Aluminum Cyclic Machinery. His work is operating mechanical arms to cut out designe 阅读全文
posted @ 2019-08-05 10:29 YukiRinLL 阅读(135) 评论(0) 推荐(0) 编辑
摘要: https://vjudge.net/contest/313233#problem/L Sample Input Sample Output 阅读全文
posted @ 2019-08-05 10:19 YukiRinLL 阅读(102) 评论(0) 推荐(0) 编辑
摘要: Sample Input Sample Output 阅读全文
posted @ 2019-08-05 10:06 YukiRinLL 阅读(276) 评论(0) 推荐(0) 编辑
摘要: https://vjudge.net/contest/313233#problem/D Input The first line of the input contains an integer TT (1≤T≤100)(1≤T≤100) denoting the number of test ca 阅读全文
posted @ 2019-08-05 09:50 YukiRinLL 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 链接:https://ac.nowcoder.com/acm/contest/997/K 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 32768K,其他语言65536K 64bit IO Format: %lld 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 3 阅读全文
posted @ 2019-07-31 11:27 YukiRinLL 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 链接:https://ac.nowcoder.com/acm/contest/1069/H时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 32768K,其他语言65536K 64bit IO Format: %lld 空间限制:C/C++ 32768K,其他语言65536K 64bi 阅读全文
posted @ 2019-07-31 11:06 YukiRinLL 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 链接:https://ac.nowcoder.com/acm/contest/1069/D 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 32768K,其他语言65536K 64bit IO Format: %lld 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 阅读全文
posted @ 2019-07-31 10:50 YukiRinLL 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 简单的DIY____博客页面客制化 阅读全文
posted @ 2019-07-24 11:47 YukiRinLL 阅读(523) 评论(1) 推荐(0) 编辑
摘要: https://vjudge.net/contest/312835#problem Bamboo Pole-vault is a massively popular sport in Xzhiland. And Master Phi-shoe is a very popular coach for 阅读全文
posted @ 2019-07-23 10:37 YukiRinLL 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 题目:Problem - 6124 http://acm.hdu.edu.cn/showproblem.php?pid=6124 Euler theorem Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 524288/524288 K (J 阅读全文
posted @ 2019-07-22 13:50 YukiRinLL 阅读(137) 评论(0) 推荐(0) 编辑
摘要: https://vjudge.net/problem/HDU-6043 KazaQ wears socks everyday. At the beginning, he has nn pairs of socks numbered from 11 to nn in his closets. Ever 阅读全文
posted @ 2019-07-22 13:46 YukiRinLL 阅读(116) 评论(0) 推荐(0) 编辑
摘要: Add More ZeroTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 663 Accepted Submission(s): 463 Pr 阅读全文
posted @ 2019-07-22 13:39 YukiRinLL 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 水题 阅读全文
posted @ 2019-07-22 10:34 YukiRinLL 阅读(156) 评论(0) 推荐(0) 编辑
摘要: Alice and Bob are playing a game. The game is played on a set of positive integers from 1 to n. In one step, the player can choose a positive integer 阅读全文
posted @ 2019-07-22 10:24 YukiRinLL 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 太丢人了这种水题都要发 阅读全文
posted @ 2019-07-22 10:07 YukiRinLL 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 瞎几把乱写 G - Naive Operations HDU - 6315 阅读全文
posted @ 2019-07-18 13:11 YukiRinLL 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 如何实现excel下拉框条件不同显示内容不同 阅读全文
posted @ 2019-07-09 22:02 YukiRinLL 阅读(965) 评论(0) 推荐(1) 编辑
摘要: 批改网禁止粘贴的解决办法 简单解决批改网禁止文本粘贴的办法 方法1 查找到页面对应元素 (具体方法:可以在里面随便写点什么,然后使用元素检索找到目标) 直接对元素进行修改 方法2 当前页面加载完成后 调出控制台,输入 $('#contents').unbind(); 禁用当前页的JS脚本 然后就可以愉快粘贴了 阅读全文
posted @ 2019-06-24 11:13 YukiRinLL 阅读(3964) 评论(0) 推荐(0) 编辑
摘要: 使用易拉罐制作一个简易的WiFi收集器 阅读全文
posted @ 2019-06-22 13:18 YukiRinLL 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 第十一届四川省程序设计竞赛 赛后感 我是没有什么感想了 人都自闭了,完全没有游戏体验hhh 签到B题H题,B题两个矩形相对位置考虑掉两种情况wa了一发 至今还记得A题夺命自走棋 嗨... (一道简单的模拟题,当时一个人在看这个题,因为一些实现的细枝末节没想到没整出来 完了,都学了一年了,还菜的一批什么都不会 我就是条咸鱼了 哎... 阅读全文
posted @ 2019-06-14 19:30 YukiRinLL 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 一个简易的OJ导航界面 一个简易的html文件 加了一张动图,做了简单的排版。把自己 最喜欢的诗句 和 日常用到的 OJ链接 放在了里面。 Chrome设置--启动时打开特定网页: 把这个h5文件的路径添加到其中, 可以实现每次打开浏览器时检查今天的刷题任务2333。 后续可能会添加爬取OJ网站的数据并显示在面板上的功能。 阅读全文
posted @ 2019-05-26 10:05 YukiRinLL 阅读(350) 评论(0) 推荐(0) 编辑