A. Yet Another Dividing into Teams 传送门 签到,有相邻的数字 ans=2,否则 ans=1 B. Books Exchange 传送门 找每个顶点处在的环的大小,dfs 行了 C. Good Numbers 传送门 我的方法是这样的,先将这个数转化为三进制来看。 ...
分类:
其他好文 时间:
2019-10-23 13:33:29
阅读次数:
110
整理一下 《Learn You a Haskell for Great Good !》 介绍的 Funtor ,Applicative Funtor 和 Monad 。并不打算写 Monad 相关的教程 ╮(╯▽╰)╭##柯里化柯里化(Currying)是将多个参数的函数化成一系列单个参数函数组合的... ...
分类:
移动开发 时间:
2019-10-18 09:17:37
阅读次数:
232
X is a good number if after rotating each digit individually by 180 degrees, we get a valid number that is different from X. Each digit must be rotate... ...
分类:
其他好文 时间:
2019-10-17 13:55:22
阅读次数:
69
思维题 这次cf思维题好多啊 定义了good string 指一个串,其中每一个字符都属于一个长度>=2 的回文串的一部分。叫你求一个串中有几个good substring。 显然ab串 good string会更多。只要aba,bab,aa,bb等等很轻易可以满足 n个字符共有 n*(n-1)/2 ...
分类:
其他好文 时间:
2019-10-11 14:08:24
阅读次数:
73
1:网页拼接不完善,可能哪里写漏了,如:),},</XX>等 2:如果有动态数据写入的话,请注意转义动态数据,如图(是转义后的内容,不会报错): 在写方法时:onclick中,注意单双引号的运用。 原文链接:https://www.cnblogs.com/wx-ym-good/p/6702890.h ...
分类:
Web程序 时间:
2019-10-09 15:59:41
阅读次数:
225
ThreadLocal 0.8532018.12.27 23:04:13字数 1384阅读 6081 0.8532018.12.27 23:04:13字数 1384阅读 6081 Don't forget, a person's greatest emotional need is to feel ...
分类:
编程语言 时间:
2019-10-08 09:47:22
阅读次数:
133
题目链接: "HDU 1847" Problem Description 大学英语四级考试就要来临了,你是不是在紧张的复习?也许紧张得连短学期的ACM都没工夫练习了,反正我知道的Kiki和Cici都是如此。当然,作为在考场浸润了十几载的当代大学生,Kiki和Cici更懂得考前的放松,所谓“张弛有道” ...
分类:
其他好文 时间:
2019-10-07 23:43:17
阅读次数:
122
传送门 C.New Year and Rating(思维) ?题意 定义 rating 分两类: ①$Div\ 1\ :\ rating \ge 1900$ ②$Div\ 2\ :\ rating < 1900$ Limak 共参加了 n 场比赛,每场比赛给出两个信息,第 i 场比赛: (1)ci ...
分类:
其他好文 时间:
2019-10-05 10:46:47
阅读次数:
55
Let's call (yet again) a string good if its length is even, and every character in odd position of this string is different from the next character (t ...
分类:
其他好文 时间:
2019-10-04 11:09:08
阅读次数:
90
#include <bits/stdc++.h> using namespace std; typedef long long ll; /* 给你一个字符串只有0和1,问你有多少个子串满足长度等于该子串的二进数值 开始我不知道如何暴力,后来想直接借助前面求得二进制值来往下求 但是还是不可以,tle ... ...
分类:
其他好文 时间:
2019-10-02 00:54:54
阅读次数:
99