码迷,mamicode.com
首页 >  
搜索关键字:round    ( 15566个结果
Codeforces Round #291 (Div. 2)解题报告A.B.C.D
A - Chewbaсca and Number 大于4的倒置,小于等于4的不倒置。注意第一位如果是9则不倒置。 代码如下:#include #include #include #include #include #include #include #inclu...
分类:其他好文   时间:2015-02-16 00:30:28    阅读次数:289
Valentine's Day Round 1001.Ferries Wheel(hdu 5174)解题报告
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5174题目意思:给出 n 个人坐的缆车值,假设有 k 个缆车,缆车值 A[i] 需要满足:A[i?1] 2 #include 3 #include 4 #include 5 using namesp...
分类:其他好文   时间:2015-02-16 00:22:56    阅读次数:237
Codeforces Round #291 Div2
A. Chewbaсca and Number 签到题 //#pragma comment(linker, "/STACK:102400000,102400000") 手动扩栈 #include #include #include #include #include #include #include #include #include #include #include #include ...
分类:其他好文   时间:2015-02-15 21:55:00    阅读次数:162
C. Watto and Mechanism 字典树 Codeforces Round #291 (Div. 2)
题意:给n个字符串和m次询问,每次询问的字符串如果能够由前面n个字符串中的某一个只改变一个字母得到 输出YES,否则NO。 用字典树解决,渣渣不熟悉字典树,写在这里以后多看看。。。。...
分类:其他好文   时间:2015-02-15 21:54:04    阅读次数:302
Codeforces Round #291 Div2 C
Problem 给N个字符串Si,进行M次询问,每次给定一个字符串S,问是否存在一个Si使得S与Si长度相等,同时有且只有一个字符不同。...
分类:其他好文   时间:2015-02-15 19:25:37    阅读次数:211
javascript小数求整
Math.ceil(arg) 返回一个比参数arg大的整数Math.floor(arg) 返回一个比参数arg小的整数Math.round(arg) 返回一个参数arg四舍五入的后的整数parseInt(arg[,radix]) 返回一个往0方向靠近的整数,但是这个函数多了一个可以根据进制来转换数字...
分类:编程语言   时间:2015-02-15 18:07:28    阅读次数:184
Codeforces Round #288 (Div. 2) 待续
A. Pasha and Pixels ( 暴力 )题意:给一个n*m的矩阵染色(初始为全白),如果在k步之内染出一个2*2的矩阵,输出最小步数,否则输出0分析:brute force#include #include #include #include using namespace std;in...
分类:其他好文   时间:2015-02-15 17:51:22    阅读次数:144
Codeforces Round #291 (Div. 2) C - Watto and Mechanism 字符串
【题意】给n个字符串组成的集合,然后有m个询问(0?≤?n?≤?3·105,0?≤?m?≤?3·105),每个询问都给出一个字符串s,问集合中是否存在一个字符串t,使得s和t长度相同,并且仅有一个字符不同。(字符串总长度为6·105),所有字符只有a,b,c。【题解】因为只有三种字符,用Trie最合...
分类:其他好文   时间:2015-02-15 16:27:36    阅读次数:281
Codeforces Round #291 (Div. 2)---C. Watto and Mechanism
Watto, the owner of a spare parts store, has recently got an order for the mechanism that can process strings in a certain way. Initially the memory of the mechanism is filled with n strings. Then the...
分类:其他好文   时间:2015-02-15 15:14:32    阅读次数:306
BestCoder Valentine's Day Round
昨晚在开赛前5分钟注册的,然后比赛刚开始就掉线我就不想说了(蹭网的下场……),只好用手机来看题和提交,代码用电脑打好再拉进手机的(是在傻傻地用手机打了一半后才想到的办法)。 1001,也就是 hdu 5174,题意很难叙述了,自己看题吧,这题有数据溢出的风险,我竟然是AC了一发才发觉的(只过了...
分类:其他好文   时间:2015-02-15 15:06:20    阅读次数:189
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!