2012山东省第三届ACM大学生程序设计竞赛 n a^o7 ! ACM 山东省赛
2012山东省第三届ACM大学生程序设计竞赛 n a^o7 ! ACM 山东省赛
Colorful Cupcakes Time Limit: 2000ms Memory limit: 65536K 有疑问?点这里^_^ 题目描述 Beaver Bindu has N cupcakes. Each cupcake has one of three possible colors. In this problem we will represent...
目录 A. Anagram 题目描述 输入描述: 输出描述: 输入 输出 解析: 代码: B.Bullet 题目描述 输入描述: 输出描述: 输入 输出 C.Cities 题目描述 输入描述: 输出描述: ...E.......
2012山东省第三届ACM大学生程序设计竞赛 Fruit Ninja II 山东省赛 sdut2416
赛前 去年打铁,卡水题的阴影真的太深了...我觉得我们队分工还是很明确的,这也算是一个优点吧。也许是因为凑在一起当队友也快一年半了,比较熟悉彼此的长板短板,刚放寒假我们三个人就又明确了各自的分工,针对个人
一部分是训练态度不够,中间一段时间在聊天,并没有全力出题, 还有队友赶紧回来啊 ,两个人磕还是不行啊,罚时爆表.最后40分钟搞的G却没有及时出,足足晚了12分钟才AC.封榜时间出题也应该是一个强队的标志,很明显,我队...
Problem Description Once ago, there is a mystery yard which only produces three kinds of apples. The number of each kind is infinite. A girl carrying a big bag comes into the yard....
把1000以内的素数打表,然后用两个数分别表示当前数和他应该乘的数,ans+=他应该乘的数的个数, 当前数的个数加一 #include using namespace std; int flag[1000006]; int prime[1009],N=0; void init() { prime...
比赛剩余时间:比赛结束 ID tag Title Accept Submit A [3560] Julyed 41 55 B [3561] Fibonacci 30 70 C [3562] Proxy 24 146
Rescue The Princess Time Limit: 1000ms Memory limit: 65536K 有疑问?点这里^_^ 题目描述 Several days ago, a beast caught a beautiful princess and the princess was put in prison....
题目链接:...题目大意:给你一行字符串,判断是否合法。 #include #include #include #include #include using namespace std; int main()
Reversed Word Time Limit: 1000 MS Memory Limit: 131072 K Description Some aliens are learning English. They have a very strange way in writing that they revered e
Problem Description Coco is a beautiful ACMer girl living in a very beautiful mountain. There are many trees and flowers on the mountain, and there are many animals and birds also....
Problem Description We define an elementa_iaiin a sequence "good", if and only if there exists aj(1\le j < i)j(1≤j<i)such thata_j < a_iaj<ai.Given a permutationppof integ...
题目链接 Problem Description Fibonacci numbers are well-known as follow: Now given an integer N, please find out whether N can be represented as the sum of several Fibonacci numbers in such a way...
今天去参加了第八届山东ACM省赛,也是自己第一次参加正式的ACM比赛,有诸多感想。 先说说去比赛的经过吧,整个大体上还是比较顺利的,青科大的志愿者也十分的负责用心(排队排的很有意思),住宿环境也还不错,但是...
给你一个点集求能分割成几种不同的2个空间可以转化为求点集能有几条直线利用3点共线的思想 通过gcd来确定 一条直线最小两个点用的学长的思路和代码。。。#include &lt;cstdio&gt; #include &lt;map&...
坑的一笔,用lucas生成组合数,老是错,后来看别人都用逆元生成,就用了逆元,发现逆元确实快的惊人。还是没认真思考复杂度,看到lucas就想套模板,根本没去想复杂度。 #include using namespace std; const int ...
GamesTime Limit: 1000 ms Memory Limit: 65536 KiBSubmit Statistic DiscussProblem DescriptionAlice and Bob are playing a stone game. There are nn piles of stones. In each turn, a player can ...
A.Nias and Tug-of-War #include &lt;iostream&gt; #include &lt;string.h&gt; #include &lt;stdio.h&gt; #include &lt;algorithm&gt; #include &...stru...
题目链接:...考虑N的二进制表示,要亦或的0,那么最高位的1要分解成低一位的两个1,同理,N中的每个1都要分解成低一位的两个1,所以会有3^num(n
省赛刚结束,还是来总结一下吧 总的来说,这场省赛的表示实在是不能令人满意啊,自己还是太弱了呀。 首先,在开场之前,我们先看了一下十道题的题目,然后通过题目含义大概猜测了一下每道题的难度,并根据这个分配...
又是全程划水的一次比赛= =||...
上来一看水题,,,查找了所有#的边缘就交了 wa了,,,,,,,然后问了队友,翻译了下,还有另外一种情况,空房子里,就重新添加另一种判定搜索点的附近公共房子为1的,ac 代码: #includ...
Problem Description For n elements x1, x2, ..., xn with positive integer weights w1, w2, ..., wn. The weighted median is the element xk satisfying and , S indicates Can you compute the ...
昨天那场比赛,我此生难忘,我的ACM生涯中,在训练了一年半的情况下,第一次打比赛,打铁了,作为一个大二的队伍,能打出这样的成绩确实让我很难过,但是我们还是有实力的,我们还是找到自己的不足,去努力做的更好 ...
思路:一个数肯定能分解成若干个素数相乘,那么我们就可以除以这些素数的立方,然后再找到能够跟这个数一起组成立方数即可。代码;#include&lt;bits/stdc++.h&gt; using namespace std; int dp[1005]; int ...
就是把给出一个表,每个表的每个位置的价值就是和他相邻的位置的价值减去他的价值。如果一个位置没有相邻的,就减1; 输出最大的价值,有相同的就输出最大的行和列 #include #include #include #include #...