码迷,mamicode.com
首页 >  
搜索关键字:csu 1553 good subseq    ( 2571个结果
Codeforces Round #597 (Div. 2) A. Good ol' Numbers Coloring
链接: https://codeforces.com/contest/1245/problem/A 题意: Consider the set of all nonnegative integers: 0,1,2,…. Given two integers a and b (1≤a,b≤104). W ...
分类:其他好文   时间:2019-11-05 13:49:03    阅读次数:110
HDU 5971"Wrestling Match"(二分图染色)
传送门 ?题意 给出 n 个人,m 场比赛; 这 m 场比赛,每一场比赛中的对决的两人,一个属于 "good player" 另一个属于 "bad player"; 给出你 x 个已经确定的"good player" 和 y 个已经确定的 "bad player"。 问是否可以将这 n 个人划分成两 ...
分类:其他好文   时间:2019-11-03 13:11:04    阅读次数:76
字符串,各种方法!
#重复输出字符串 print('hello'*2) #索引、切片取字符串中的某值 print('helloworld'[-3:]) #格式字符串 % print("%s is a good man!"%'csun') #字符串拼接,重点,join方法 a='123' b='abc' c='。。。'.... ...
分类:其他好文   时间:2019-10-31 10:44:34    阅读次数:102
TCP被动打开 之 第一次握手-接收SYN
假定客户端执行主动打开,服务器执行被动打开,客户端发送syn包到服务器,服务器接收该包,进行建立连接请求的相关处理,即第一次握手;本文主要分析第一次握手中被动打开端的处理流程,主动打开端的处理请查阅本博客内另外的文章; IPv4携带的TCP报文最终会进入到tcp_v4_do_rcv函数,服务器准备接 ...
分类:其他好文   时间:2019-10-28 11:06:48    阅读次数:177
Good number(3进制)
https://codeforces.com/problemset/problem/1249/C2 C2. Good Numbers (hard version) time limit per test 2 seconds time limit per test memory limit per t ...
分类:其他好文   时间:2019-10-28 00:57:35    阅读次数:103
Div3 C good number easy version
good numbers easy version 输入值n一直除3至0,在这个过程中只要n % 3 == 2就说明n不是good number,因为2 == 3^0 + 3^0 ...
分类:其他好文   时间:2019-10-28 00:35:07    阅读次数:140
Codeforces--C2. Good Numbers (hard version)
题目链接http://codeforces.com/contest/1249/problem/C2。这是道进制转换题,我们的目的是找到最小的一个每个位都是1的三进制数来表示一个十进制数n。做法是,先将n转换为一个三进制数,然后对当前位加上低位的进位大于等于2的位置0并进位,这一步需要注意的是,当前位 ...
分类:其他好文   时间:2019-10-27 12:27:26    阅读次数:79
bash while until 循环用法
首先, bash中命令执行成功返回状态码 0, 失败返回非0状态码(以下$是终端提示符) $ true; echo $? 0 $ false; echo $? 1 1. while $ while true; do echo good; break; done good $ while [ 1 eq ...
分类:其他好文   时间:2019-10-27 01:17:39    阅读次数:130
English Voice of <<Everything I Need >>
Born on the wrong side of the ocean 生在海的逆流一端 With all the tides against you 潮汐日夜向你侵袭 You never thought you'd be much good for anyone 你从未想过自己对他人有何种非凡意义 ...
分类:其他好文   时间:2019-10-25 09:39:03    阅读次数:98
Codeforces Round #595 (Div. 3) 题解
A. Yet Another Dividing into Teams 传送门 签到,有相邻的数字 ans=2,否则 ans=1 B. Books Exchange 传送门 找每个顶点处在的环的大小,dfs 行了 C. Good Numbers 传送门 我的方法是这样的,先将这个数转化为三进制来看。 ...
分类:其他好文   时间:2019-10-23 13:33:29    阅读次数:110
2571条   上一页 1 ... 15 16 17 18 19 ... 258 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!