会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
温一壶月光
香中别有韵,清极不知寒。
博客园
首页
新随笔
联系
管理
[置顶]
博客园 页面定制CSS代码
摘要: <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Live2D
阅读全文
posted @ 2019-02-18 09:07 Tangent_1231
阅读(11701)
评论(67)
推荐(110)
2020年8月12日
Round A 2020 - Kick Start 2020 Workout【二分】
摘要: Problem Tambourine has prepared a fitness program so that she can become more fit! The program is made of N sessions. During the i-th session, Tambour
阅读全文
posted @ 2020-08-12 15:58 Tangent_1231
阅读(169)
评论(0)
推荐(0)
2020年4月1日
关于py的AttributeError: module 'XXX' has no attribute 'XXX'问题
摘要: 本文重点:如若出错,请检查自己python文件的命名是否为py的模块、函数等!检查方法:百度python+你的文件名 下面是发现这个问题的故事。 今天早上还没睡醒,有远在美国的同学问我一个问题: 这个是什么问题? 他仅仅编写了这两段代码: 本人才疏学浅,立马去查一下什么是pandas,read_cs
阅读全文
posted @ 2020-04-01 10:17 Tangent_1231
阅读(2508)
评论(0)
推荐(0)
2020年3月19日
在Mac上使用Visual Studio Code开发/调试.NET Core代码
摘要: 原文地址:https://www.cnblogs.com/kklldog/p/vscodecsharpext.html 1.安装.NET Core 在mac上打开终端: ~$ brew update ~$ brew install openssl ~$ brew link --force opens
阅读全文
posted @ 2020-03-19 10:22 Tangent_1231
阅读(841)
评论(0)
推荐(0)
2020年3月5日
Treasure Exploration poj2594(传递闭包+最少路径覆盖)
摘要: Sample Input 1 0 2 1 1 2 2 0 0 0 Sample Output 1 1 2题意:一副地图,单向边,但没有环,问最少有几条路径能覆盖全图(一条路径不能重复点,多条路径可以交叉)。思路:先跑floyd闭环,找出那些点可达,然后用最小路径覆盖找到那些边,最后答案是总点-cnt
阅读全文
posted @ 2020-03-05 19:08 Tangent_1231
阅读(180)
评论(0)
推荐(0)
2020年3月4日
HDU - 5971 Wrestling Match(DFS 二分图染色)
摘要: Sample Input 5 4 0 0 1 3 1 4 3 5 4 5 5 4 1 0 1 3 1 4 3 5 4 5 2 Sample Output NO YES题意:有n个人,有m场比赛,有x个好人,y个坏人,需要根据下面的m场比赛,确认是否可以将n个人划分为好人还是坏人。不一定要知道这个人到
阅读全文
posted @ 2020-03-04 21:43 Tangent_1231
阅读(171)
评论(0)
推荐(0)
A Simple Math Problem HDU - 5974
摘要: Sample Input 6 8 798 10780 Sample Output No Solution 308 490题意:给出a,b两个数字,问是否存在x,y,使得x+y=a,lcm(x,y)=b。找不到输出“No Solution”思路:大佬队友写出来的。x+y=a,x*y/gcd(x,y)=
阅读全文
posted @ 2020-03-04 21:35 Tangent_1231
阅读(152)
评论(0)
推荐(0)
Codeforces-1256-D. Binary String Minimizing(贪心)
摘要: Input 3 8 5 11011010 7 9 1111100 7 11 1111100 Output 01011110 0101111 0011111题意:t组样例,给一个长度为n的字符串,要求在k步以内进行字符交换(1步只能交换i和i+1)使得字符串字典序最小。思路:贪心,存下0的位置,让前面
阅读全文
posted @ 2020-03-04 21:31 Tangent_1231
阅读(233)
评论(0)
推荐(0)
Gym - 102411M (unordered_map)
摘要: Input 4 5 1 2 1 2 1 3 30 20 10 5 1 2 2 3 4 9 3 1 4 1 5 9 2 6 5 Output 1 1 4 5 题意:输入一个n表示天数,下一行跟着长度为n的数组a表示第i天的题目难度a[i]。我们想找到aj-ai=ak-aj成立的式子。 做法:使用uno
阅读全文
posted @ 2020-03-04 21:10 Tangent_1231
阅读(249)
评论(0)
推荐(0)
codeforces 1301C Ayoub's function (排列组合)
摘要: Example Input 5 3 1 3 2 3 3 4 0 5 2 Output 4 5 6 0 12题意:给出01字符串的长度,告诉1的数量,求包含1区间的个数。思路:先求出全部区间的数量,然后贪心的想用1把0全部平均分割开,然后减去只有0组合在一起的数量。 #include<iostream
阅读全文
posted @ 2020-03-04 21:00 Tangent_1231
阅读(170)
评论(0)
推荐(0)
Largest Submatrix of All 1’s POJ - 3494(笛卡尔树,求全位1的最大子矩阵)
摘要: 题意:给一个n*m的01矩阵,求全为1的最大子矩阵。 1 #include<iostream> 2 #include<algorithm> 3 #include<cstdio> 4 #include<cstring> 5 #include<queue> 6 #include<set> 7 #incl
阅读全文
posted @ 2020-03-04 20:44 Tangent_1231
阅读(203)
评论(0)
推荐(0)
下一页
公告