#include<stdio.h> void main() {int a,b,c,d; scanf("%d,%d,%d",&a,&b,&c); d=max(a,b,c); printf("max=%d",d); getch(); /*暂停看运行结果*/ } int max(int x,int y,i ...
分类:
编程语言 时间:
2018-06-08 22:37:56
阅读次数:
211
题面 "传送门" 思路 首先,我们发现这个式子中大部分的项都和$j$有关(尤其是后面的$2^j\ast j!$),所以我们更换一下枚举方式,把这道题的枚举方式变成先$j$再$i$ $f(n)=\sum_{j=0}^n2^j\ast j!\sum_{i=0}^nS_i^j$ 第二类斯特林数有一个基于组 ...
分类:
其他好文 时间:
2018-06-07 20:53:17
阅读次数:
132
2212: [Poi2011]Tree Rotations Description Byteasar the gardener is growing a rare tree called Rotatus Informatikus. It has some interesting features: ...
分类:
其他好文 时间:
2018-06-07 19:22:25
阅读次数:
166
在getchar();处加断点进行调试,得 在getchar();处加断点进行调试,得 ...
分类:
其他好文 时间:
2018-06-05 19:12:56
阅读次数:
158
原文链接:https://www.runoob.com/cprogramming/c-function-printf.html#include<stdio.h> #include<string.h> int main(void) { charc,s[20],*p; inta=1234,*i; flo ...
分类:
编程语言 时间:
2018-06-03 16:25:56
阅读次数:
214
SOL: 我们发现一棵生成树最多99条边,用线段树合并。 ...
分类:
其他好文 时间:
2018-06-02 21:31:25
阅读次数:
156
Problem description There are n employees in Alternative Cake Manufacturing (ACM). They are now voting on some very important question and the leading ...
分类:
其他好文 时间:
2018-06-01 19:40:52
阅读次数:
173
this is a sad thing //本文置顶,希望不要再有contest的总结和它争位置 淋了点雨,头有点疼,中午罚自己没吃饭, 他说要化悲愤为食欲,可是我就是吃不下去。 还记得以前的时候,为了节约时间,一起跑去超市买个面包,然后再跑回来的事,结果两个人时间没节约多少,反而都病了,于是就要喝 ...
分类:
其他好文 时间:
2018-05-31 21:58:00
阅读次数:
182
题解 我们设$f(i,j)$是$(i,j)$这个点期望被经过多少次 我们可以列出方程组来消元,由于终点只会被经过0次或者1次,期望就是概率 对于起点的话我们期望经过次数多加一个1 复杂度$O(n^6)$ 代码 cpp include include include include include i ...
分类:
其他好文 时间:
2018-05-31 10:48:06
阅读次数:
235