10 2019 档案
摘要:题目链接:http://codeforces.com/gym/101981/attachments 题目大意:输入两个串 问你第一个串能不能转化为第二个串,翻转次数无限制,但是每次只能翻转K个连续相同的字母 思路:找到两个串中连续的相等的K个字符,可以把他们提到串的最前面(也可以全部消掉,因为不管位
阅读全文
摘要:题目链接:https://www.luogu.org/problem/P1337 题目描述 如图:有n个重物,每个重物系在一条足够长的绳子上。每条绳子自上而下穿过桌面上的洞,然后系在一起。图中X处就是公共的绳结。假设绳子是完全弹性的(不会造成能量损失),桌子足够高(因而重物不会垂到地上),且忽略所有
阅读全文
摘要:题目链接:http://codeforces.com/gym/101981/attachments 题意:给你n个三维空间点(n<=100)要求找到一个离所有点最远的距离最小的点,并输出这个距离 思路:模拟退火,首先取一个值,代表答案点在的位置,然后暴力一遍所有的点,会得到里当前点最远的点是哪个 然
阅读全文
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4333 Revolving Digits Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)T
阅读全文
摘要:题目链接:https://ac.nowcoder.com/acm/contest/1099/K 链接:https://ac.nowcoder.com/acm/contest/1099/K来源:牛客网 题目描述 Bobo 有 n 个列表 L1,L2,…,LnL_1, L_2, \dots, L_nL1
阅读全文
摘要:#include<iostream> #include<cstdio> #include<cstring> #include<algorithm> #include<cmath> #include<vector> #include<map> #include<cstdlib> #include<fstream> #include<time.h> #include<list> using names
阅读全文
摘要:学习链接:https://blog.csdn.net/ztzshiwo_cnyali/article/details/52221503 题目链接:http://poj.org/problem?id=3580 POJ 3580 splay超全模板题... 总共有6种操作,分别为MIN,INSERT,A
阅读全文
摘要:题目链接:https://codeforces.com/problemset/problem/1131/D D. Gourmet choice time limit per test 2 seconds memory limit per test 256 megabytes input standa
阅读全文

浙公网安备 33010602011771号