- 博客(15)
- 收藏
- 关注
原创 Canvas画布实现套索的效果
好久没写博客了QUQ 记得上次写博客还是上次前言不久之前我的leader给我提了一个需求,实现一个套索的功能。一开始我还在想这个套索怎么实现然后某个晚上我在做梦的时候梦到我在打这个的代码然后第二天直接就给我秒杀了…我也不是很会描述这个东西…先贴个代码以后想到怎么解释了再更新吧。估计也没什么人看。<script> let isActive = false; //是否弃用 let divContainer = document.getElementById("divContaine
2022-01-06 19:50:05
1381
2
原创 HDU 6693 Valentine's Day
题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=6693对于0.5以下的概率x的贡献值最多只有到1/x个。在有效的贡献范围内只要他的个数还没到就一直是有用的,直接计算就好了。#include<bits/stdc++.h>using namespace std;double num[100000+10];d...
2019-08-21 19:44:33
358
原创 2019 Multi-University Training Contest 3 1006 Fansblog
FansblogProblem DescriptionFarmer John keeps a website called ‘FansBlog’ .Everyday , there are many people visited this blog.One day, he ...
2019-07-29 19:31:50
258
1
原创 Many Equal Substrings
A. Many Equal Substringstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a string tt consisting of nn lowercase Lati...
2018-08-27 12:16:45
344
原创 Distinct
题目描述Alice has an array a of n integers. You are told some facts about the array: for every two elements ai and aj in the subarray al..r (l≤i<j≤r),ai ≠aj holds.You need find a array with minimum...
2018-08-20 08:43:44
1851
原创 Swaps and Inversions
Long long ago, there was an integer sequence a. Tonyfang think this sequence is messy, so he will count the number of inversions in this sequence. Because he is angry, you will have to pay x yuan for...
2018-07-28 09:16:25
443
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人