ACM.其他
文章平均质量分 58
slowlight93
这个作者很懒,什么都没留下…
展开
-
zoj-1094-Matrix Chain Multiplication
mysol1 直接解析:#include #include #include #include #include using namespace std;const int maxTableSize = 26 + 1;typedef struct{ char identify; int row; int col;}Matrix;#原创 2013-09-05 20:46:04 · 678 阅读 · 0 评论 -
codeforces 285(树,康托展开,组合,二分)
501C Misha and Forest只要看出这是一个包含若干棵树的森林就好办了,从叶子开始删除。。504B - Misha and Permutations Summation Factorial number system 或者康拓展开康拓展开是 排列 和 十进制整数之间的双向映射,转换的中间结果可以表示在中 Factorial number syste原创 2015-01-16 23:31:52 · 781 阅读 · 0 评论 -
微软安装包中 Redistributable 和 runtime 的区别
Redistributable 的意思是允许任意分发给他人。。Redistributable 为没有安装 Visual Studio 的电脑安装 runtime 环境,使得能在其上运行 Visual Studio 编写的程序。简单来说,Redistributable 包含 runtime, 所以需要某一runtime环境的时候,装 Redistributable 就好了。h原创 2015-01-21 16:42:15 · 10638 阅读 · 0 评论 -
书单1
《算法之道》 邹恒明原创 2014-09-22 11:55:06 · 451 阅读 · 0 评论 -
阿拉伯数字转换为罗马数
只要将普通数字转化为 ai*10^i 和形式,然后从高到低逐位转化即可。为此,我们需要先处理出1~9, 10~90....的表const char Sym[][10] = {"I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX", "X", "X", "XX", "XXX", "XL"原创 2014-12-24 21:42:56 · 697 阅读 · 0 评论 -
codeforces div2 496
C题意:给你 n*m 的字符串矩阵,要求删除最少的列,使得每一行的字典序大于其前面一行。思路:我们可以从0到n-1依次判断是否需要删除该列。对于某一列,只有当出现了 某个位置小于其前面的位置,并且前面保留的列不能决定其大小,才考虑删掉。可以对每个位置设一个标志,表示这个位置是否已经被“决定了”。#include#define SPEED_UP iostream::sync_with_原创 2014-12-21 00:36:05 · 392 阅读 · 0 评论 -
在编程竞赛中使用<bits/stdc++.h>
这个头文件包含所有C/C++标准库,麻麻再也不用担心 missing header file 了 = =但是国内的几个OJ不支持,如POJ,HDU。。。referencehttp://codeforces.com/blog/entry/8387原创 2014-12-17 11:28:05 · 6234 阅读 · 1 评论 -
Codeforces 272 div2
C设 m原创 2014-10-13 00:57:18 · 482 阅读 · 0 评论 -
SRM619DIV2950
Problem Statement Shiny wants to hire some managers for her company. There are N candidates, numbered 0 through N-1. She can employ any subset of these candidates, including possibly none原创 2014-05-05 21:53:22 · 731 阅读 · 0 评论 -
CodeForces 281B
这道题大家一般都是直接枚举。原创 2014-08-29 15:30:11 · 560 阅读 · 0 评论 -
ZOJ1098-Simple Computer
模拟CPU要注意的几个地方pc > 31 accu 255#include enum Instructions{ iSTA, iLDA, iBEQ, iNOP, iDEC, iINC, iJMP, iHLT};int strToInt( char * str ){ int result = 0; for(int i=7;i>=0;i--) {原创 2013-07-23 03:23:42 · 3616 阅读 · 0 评论 -
ZOJ1099-HTML
#include #include char buf[81];char Ident[2][5] = {"", ""};int main(){ int index = 0; while( scanf("%s", buf) != EOF ) { if( strcmp(buf, Ident[0]) == 0 )原创 2013-07-23 03:50:19 · 605 阅读 · 0 评论 -
在windows上安装simplegui
什么是 simplegui原创 2014-09-28 02:29:46 · 8559 阅读 · 0 评论