”ACM---山东省赛“ 的搜索结果

     思路:当石子个数大于2时,后手赢。 #include #include using namespace std; int main(){ int T; long long N; scanf("%d",&T); while(T--){ scanf("%lld",&N); if(N>2){ print

     Problem Description Julyed is preparing for her CET-6. She has N words to remember, but there is only M days left. If she can’t remember all these words, she won’t pass CET-6. If she can’t pass .....

     #include #include #include #include #include #include using namespace std; //快速幂 int a[10009]; const int mod=997; int pow_quick(int x,int n) { int sum=1; while(n) ... if(n%2)su

     Problem Description Because of the GFW (Great Firewall), we cannot directly visit many websites, such as Facebook, Twitter, YouTube, etc. But with the help of proxy and proxy server, we can easily...

     2018.5.5-5.6山东省赛总结  从清明节选拔赛结束后开始准备的省赛终于也结束了。非常非常非常幸运的擦边拿了个银末,当然主要还是靠我的俩队友带飞,实在是太强了OAQ,跟他们组队我学会了不少新的名词,嗯…当然要...

     省赛结束快两个星期辣,原谅弱到现在才写总结,拖延症晚期路过(逃。 其实觉得自己挺幸运的,省赛前因为各种原因和FF and +才组队,然后瞬间抱上大腿,完美蜕变,成为一名辅助,走上人生巅峰。 一群不会起名字的BD...

     山东省第八届ACM程序设计竞赛。国庆节重现赛。 C题烟火爆炸,难在求组合数,需要用到逆元。其中我代码中的求法可以提取出来当板子用。 F题判段离散数学中的一个条件命题是否正确。难点是判断浮点数a / b是否为整数。...

     题目链接: Proxy 题意 比赛前期读题不顺,不知道是最小生成树还是最短路径,好吧,其实我们最开始想的连最短路径都不是 到了后期终于知道了题意。就是给你一个图,让你求0节点到n+1节点的最短路径,但不是让你输出...

     #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; const int maxn=1e5+5; int a[maxn]; int main() ... scanf("%d

     #include #include #include #include using namespace std; char str[1000][1000]; char type[1000]; //本题目使用scanf巧妙分段,将不同数据保存在不同的数组中,受教了。 void ace() ...

     题意:  一个数论题,要求满足如下等式的x有多少个。 思路:  当时比赛是,队伍看到这个题,也没有做太多的思考,就是无从下手,几乎放弃。但是看到学校另外两支队伍都过了这个题,感觉自己还是好菜。...

     山东省第六届省赛总结 第一次参加现场赛,写下这篇日志,告诉以后的我,这是梦启航的地方。 省赛选拔赛之后,和 GS and PP 组女队,经过一段时间的磨合,迎来五月份青岛之战。首先要感谢的我的队友们,没有她们...

     Problem DescriptionSherlock and Watson are playing the following modified version of Nim game: There are n piles of stones denoted as ,,…,, and n is a prime number; Sherlock always plays first, and...

     题目题意:在数轴上会有烟花,他会向前一个和后一个扩散,然后在一定时间后,要求最后位置有多少烟花。 模拟一下发现一行中把0去掉之后他就是一个杨辉三角。新知识:杨辉三角就是组合数。但是因为组合数太大了,...

     热身赛 这场比赛从结果而言达到了预期(金牌),从过程而言和我的预期相差甚远(打的太乱,个人发挥很差),还好关键时刻队友抗住压力,负责后果真的不堪设想。 热身赛纯粹测机器的,先把A,B,C草草水过(A题小写x打...

     MedianTime Limit:1 Second Memory Limit:65536 KB Recall the definition of the median ofelements whereis odd: sort these elements and the median is the-th largest element. In this problem,...

10  
9  
8  
7  
6  
5  
4  
3  
2  
1