第八届福建省大学生程序设计竞赛-重现赛

Latext安装(二)WinEdt安装+激活教程 常用的LaTeX安装方案是TeXLive + WinEdt。TeXLive 是LaTeX的运行环境,而 WinEdt 则是编写LaTeX文档的编辑器。安装好TexLive之后,再安装WinEdt。这里介绍的是WinEdt的安装和激活教程。 阅读详情

A:水题

B:判断两个三角形是相交相含相离

C:用了好久才搞懂题意的我。然后就没有然后了。后来题解也没有搜到。想用差分约束或者类似于网络流的东西搞一搞

D:BOb和alice的游戏。由于要判断串a中有无串b,所以要用到kmp。

坑点在于串b很可能有后缀0,这样翻转后就没了。我们队当时没考虑到这个问题WA了很多发

具体看代码:

#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
typedef long long ll;
const int INF = 0x3f3f3f3f;
const int MAXN = 2000009;
int t, f[MAXN], f2[MAXN], lens, lenss;
char s[MAXN], ss[MAXN];
void getfail()
{
	f[0] = f[1] = 0;
	for (int i = 1; i < lenss; ++i) {
		int j = f[i];
		while (j && ss[i] != ss[j]) j = f[j];
		f[i + 1] = (ss[i] == ss[j] ? j + 1 : 0);
	}
}
int find()
{
	int j = 0;
	for (int i = 0; i < lens; ++i) {
		while (j && ss[j] != s[i]) j = f[j];
		if (ss[j] == s[i]) ++j;
		if (j == lenss) return 1;
	}
	return 0;
}
int main()
{
	scanf("%d", &t);
	while (t--) {
		int flag = 0;
		scanf("%s %s", s, ss);
		if (strcmp(s, ss) == 0) {
			puts("Alice");
			continue;
		}
		lenss = strlen(ss);
		lens = strlen(s);
		while (lenss && ss[lenss - 1] == '0') {
			ss[lenss - 1] = '\0';
			--lenss;
		}
		getfail();
		if (find()) flag = 1;
		reverse(s, s + lens);
		if (find()) flag = 1;
		if (flag) puts("Alice");
		else puts("Bob");
	}
	return 0;
}

E:没看

F:树状数组或者线段树搞一搞。待补

G:期望题。

类似于:百事世界杯之旅

import java.math.BigInteger;
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		int n,t;
		Scanner sc=new Scanner(System.in);
		t=sc.nextInt();
		
		for(int j=1;j<=t;j++)
		{
			BigInteger num=BigInteger.ONE;
			n=sc.nextInt();
			for(int i=1;i<=n;i++)
			{
				num=num.multiply(BigInteger.valueOf(i));
			}
			//System.out.println(num);
			BigInteger ans=BigInteger.ZERO;
			for(int i=1;i<=n;i++)
			{
				ans=ans.add(num.divide(BigInteger.valueOf(i)));
		    }
			System.out.println(ans+".0");
		}
	}
}

H:不会

I:预处理了一下长度,1921ms卡过。不过是赛后想到的

Kim is a magician, he can use n kinds of magic, number from 1 to n. We use string Si to describe magic i. Magic Si will make Wi points of damage. Note that Wi may change over time.


Kim obey the following rules to use magic:


Each turn, he picks out one magic, suppose that is magic Sk, then Kim will use all the magic i satisfying the following condition:


1. Wi<=Wk


2. Sk is a suffix of Si.


Now Kim wondering how many magic will he use each turn.


Note that all the strings are considered as a suffix of itself.


Input
First line the number of test case T. (T<=6)


For each case, first line an integer n (1<=n<=1000) stand for the number of magic.


Next n lines, each line a string Si (Length of Si<=1000) and an integer Wi (1<=Wi<=1000), stand for magic i and it’s damage Wi.


Next line an integer Q (1<=Q<=80000), stand for there are Q operations. There are two kinds of operation.


“1 x y” means Wx is changed to y.


“2 x” means Kim has picked out magic x, and you should tell him how many magic he will use in this turn.


Note that different Si can be the same.


Output
For each query, output the answer.


Sample Input
1
5
abracadabra 2
adbra 1
bra 3
abr 3
br 2
5
2 3
2 5
1 2 5
2 3
2 2
Sample Output
3
1
2
1

#include<iostream>
#include<stdio.h>
#include<string.h>
using namespace std;
struct node
{
    char h[1010];
    int len;
    int cnt;
}lala[1010];
int main()
{
    int t,n;
    int q;
    int aa,bb,cc;
    scanf("%d",&t);
    while(t--)
    {
       scanf("%d",&n);
        for(int i=1;i<=n;i++)
        {
            //cin>>lala[i].h>>lala[i].cnt;
             scanf("%s%d",lala[i].h,&lala[i].cnt);
            lala[i].len=strlen(lala[i].h);
        }
        scanf("%d",&q);
        for(int i=1;i<=q;i++)
        {
           scanf("%d",&aa);
            if(aa==1)
            {
               scanf("%d%d",&bb,&cc);
                lala[bb].cnt=cc;
            }
            else
            {
                scanf("%d",&bb);
                int cntt=0;
                for(int z=1;z<=n;z++)
                {
                    int flag=0;
                    if(lala[z].len<lala[bb].len||lala[z].cnt>lala[bb].cnt)
                        continue;
                    else
                    {
                        //cout<<lala[z].len-1-lala[bb].len<<"*****"<<endl;
                        //string kaka=lala[bb].h.substr(lala[z].len-1-lala[bb].len,lala[bb].len);
                        for(int j=lala[bb].len-1, kk=lala[z].len-1;j>=0;j--,kk--)
                        {
                            if(lala[bb].h[j]!=lala[z].h[kk])
                            {
                                flag=1;
                                break;
                            }
                        }
                        if(flag==0)
                            cntt++;
                    }
                }
                printf("%d\n",cntt);
            }
        }
    }
    return 0;
}

J:This is a very easy problem.


ACMeow loves GTX1920. Now he has m RMB, but no GTX1920s. In the next n days, the unit price of GTX1920 in the ith day is Ci RMB. In other words, in the ith day, he can buy one GTX1920 with Ci RMB, or sell one GTX1920 to gain Ci RMB. He can buy or sell as many times as he wants in one day, but make sure that he has enough money for buying or enough GTX1920 for selling.


Now he wants to know, how many RMB can he get after the n days. Could you please help him?


It’s really easy, yeah?


Input
First line contains an integer T(1 ≤ T ≤20), represents there are T test cases.


For each test case: first line contains two integers n(1 ≤ n ≤2000) and m(0 ≤ m ≤1000000000). Following n integers in one line, the ith integer represents Ci(1 ≤ Ci ≤1000000000).


Output
For each test case, output "Case #X: Y" in a line (without quotes), where X is the case number starting from 1, and Y is the maximum number of RMB he can get mod 1000000007.


Sample Input
2
3 1
1 2 3
4 1
1 2 1 2
Sample Output
Case #1: 3

Case #2: 4

主要就是可以买卖很多次。

思路:谷底买,谷峰卖。细节

具体看代码:

import java.math.BigInteger;
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		int t,cas=0;
		Scanner sc=new Scanner(System.in);
		t=sc.nextInt();
		int []a=new int[2005];
		BigInteger haha=BigInteger.valueOf(0);
		int anaaa=0;
		while((t--)>0)
		{
			anaaa++;
			int n=sc.nextInt();
			int m=sc.nextInt();
			BigInteger ans=BigInteger.valueOf(m);
			haha=BigInteger.valueOf(m);
			int i,j,k;
			for(i=1;i<=n;i++)
				a[i]=sc.nextInt();
			for(i=1;i<=n;)
			{
				for(j=i;j+1<=n;j++)
				{
					if(a[j+1]>a[j])//找最小值(a[j])
					{
						break;
					}
				}
				if(j==n) //此处不可省略!!!
	                	break;
				for(k=j+1;k+1<=n;k++)
				{
					if(a[k+1]<a[k])//找最大值(a[k])
					{
						break;
					}
				}
				BigInteger numm=haha.divide(BigInteger.valueOf(a[j]));//买的个数
				BigInteger lala=haha.subtract(numm.multiply(BigInteger.valueOf(a[j])));//买完后剩的钱
				  
				 haha=lala.add(numm.multiply(BigInteger.valueOf(a[k])));
				i=k+1;
			}
			System.out.println("Case #"+anaaa+": "+haha.mod(BigInteger.valueOf(1000000007)));
		}
	}

}

K:错排公式

N wizards are attending a meeting. Everyone has his own magic wand. N magic wands was put in a line, numbered from 1 to n(Wand_i owned by wizard_i). After the meeting, n wizards will take a wand one by one in the order of 1 to n. A boring wizard decided to reorder the wands. He is wondering how many ways to reorder the wands so that at least k wizards can get his own wand.


For example, n=3. Initially, the wands are w1 w2 w3. After reordering, the wands become w2 w1 w3. So, wizard 1 will take w2, wizard 2 will take w1, wizard 3 will take w3, only wizard 3 get his own wand.


Input
First line contains an integer T (1 ≤ T ≤ 10), represents there are T test cases.


For each test case: Two number n and k.


1<=n <=10000.1<=k<=100. k<=n.


Output
For each test case, output the answer mod 1000000007(10^9 + 7).


Sample Input
2
1 1
3 1
Sample Output
1

4

代码:

#include <iostream>
#include <cstdio>
using namespace std;
typedef long long ll;
const int INF = 0x3f3f3f3f;
const int M = 1e9 + 7;
const int MAXN = 10009;
ll c[MAXN], d[MAXN], inv[MAXN];
int t, n, k;
void getC()
{
	c[0] = 1;
	for (int i = 0; i < n; ++i) {
		c[i + 1] = (((c[i] * (n - i)) % M) * inv[i + 1]) % M;
	}
}
int main()
{
	d[0] = 0;
	d[2] = 1;
	d[3] = 2;
	for (int i = 4; i <= 10001; ++i) {
		d[i] = 1LL * (i - 1) * (d[i - 1] + d[i - 2]) % M;
	}
	inv[1] = 1;
	for (ll i = 2; i <= 10001; ++i) {
		inv[i] = (M - M / i) * inv[M % i] % M;
	}
	scanf("%d", &t);
	while (t--) {
		scanf("%d %d", &n, &k);
		getC();
		ll ans = 1;
		for (int i = k; i < n; ++i) {
			ans = (ans + (c[i] * d[n - i]) % M) % M;
		}
		printf("%lld\n", ans);
	}
	return 0;
}
L:

给你一个3*3的井字棋,判断Kim是否能够通过两步赢得对手。

两步赢得对手的步骤是:Kim下,对方下,Kim下。如果棋子能够三连就算Kim赢。

自己还没模拟。学长的代码先粘上。

代码:

#include <iostream>
#include <cstdio>
#include <queue>
using namespace std;
typedef long long ll;
const int INF = 0x3f3f3f3f;
const int MAXN = 100009;
char ch, chh;
struct Lu
{
	char mp[5][5];
} L, LL, LLL;
bool check(Lu p, char oo)
{
	for (int i = 1; i <= 3; ++i) {
		if (p.mp[i][1] == oo && p.mp[i][1] == p.mp[i][2] && p.mp[i][1] == p.mp[i][3]) return 1;
		if (p.mp[1][i] == oo && p.mp[1][i] == p.mp[2][i] && p.mp[1][i] == p.mp[3][i]) return 1;
	}
	if (p.mp[1][1] == oo && p.mp[1][1] == p.mp[2][2] && p.mp[1][1] == p.mp[3][3]) return 1;
	if (p.mp[1][3] == oo && p.mp[1][3] == p.mp[2][2] && p.mp[1][3] == p.mp[3][1]) return 1;
	return 0;
}
bool solve(Lu p)
{
	queue <Lu> qq;
	LLL = p;
	for (int i = 1; i <= 3; ++i) {
		for (int j = 1; j <= 3; ++j) {
			if (LLL.mp[i][j] == '.') {
				LLL.mp[i][j] = chh;
				if (check(LLL, chh)) return 0;
				qq.push(LLL);
				LLL.mp[i][j] = '.';
			}
		}
	}
	while (!qq.empty()) {
		LL = qq.front(); qq.pop();
		int tmp = 0;
		for (int i = 1; i <= 3; ++i) {
			for (int j = 1; j <= 3; ++j) {
				if (LL.mp[i][j] == '.') {
					LL.mp[i][j] = ch;
					if (check(LL, ch)) tmp = 1;
					LL.mp[i][j] = '.';
				}
			}
		}
		if (!tmp) return 0;
	}
	return 1;
}
bool bfs()
{
	queue <Lu> q;
	LL = L;
	for (int i = 1; i <= 3; ++i) {
		for (int j = 1; j <= 3; ++j) {
			if (LL.mp[i][j] == '.') {
				LL.mp[i][j] = ch;
				q.push(LL);
				LL.mp[i][j] = '.';
			}
		}
	}	
	while (!q.empty()) {
		L = q.front(); q.pop();
		if (solve(L)) return 1;
	}
	return 0;
}
int main()
{
	int t;
	scanf("%d", &t);
	while (t--) {
		for (int i = 1; i <= 3; ++i) {
			for (int j = 1; j <= 3; ++j) cin >> L.mp[i][j];
		}
		cin >> ch;
		if (ch == 'o') chh = 'x';
		else chh = 'o';
		if (check(L, ch)) puts("Kim win!");
		else if (check(L, chh)) puts("Cannot win!");
		else if (bfs()) puts("Kim win!");
		else puts("Cannot win!");
	}
	return 0;
}

ps:~~~~~好对不起学长,自己全程就是读题的,然后题还没读懂。怎么这么菜呢~还是只能A下水题

在Matlab中开发AutoSAR模型的流程(自下而上) 前面介绍了AutoSAR软件组件开发的两种方式,其中自下向上的方式,是从模型出发,流程如下。 阅读详情

相关推荐

别再死记硬背了!用这5个Qt Design Studio小项目,彻底玩转核心组件

本文通过5个Qt Design Studio实战项目,帮助开发者深入理解核心组件的协作与应用。从动态登录界面到游戏化任务列表,每个项目都展示了组件属性与交互设计的巧妙结合,让你不再死记硬背,而是真正掌握Qt Design Studio的核心技能。

weixin_29202213的博客 285

第八届福建省大学生程序设计竞赛(部分题解)

A - Frog 鸡兔同笼问题 #include&lt;iostream&gt; #include&lt;cstdio&gt; #include&lt;cstdlib&gt; #include&lt;cstring&gt; #include&lt;string&gt; #include&lt;cmath&gt; #include&lt;iomanip&gt; #include&lt

Akatsuki 1033

Qt5.15.2安卓开发环境配置保姆级教程(含JDK8、SDK33、NDK21.4及Gradle国内镜像避坑指南)

本文提供Qt5.15.2安卓开发环境配置的完整教程,涵盖JDK8、SDK33、NDK21.4及Gradle国内镜像设置,帮助开发者快速搭建开发环境并避免常见问题。通过详细步骤和实战技巧,解决依赖冲突、网络超时等难题,提升开发效率。

weixin_28730353的博客 208

第八届福建省大学生程序设计竞赛

第八届福建省大学生程序设计竞赛 题意:抽象过来就是,有n个人,随机打乱顺序后,有多少情况是至少有k个人在正确的位置上。 思路: 错排+组合数学。 设定Dp【i】表示错排的数量。 那么考虑dp转移方程,我们考虑最新加进来的这个数字i: ①如果他放在了位子k上,然后位子k上的这个数字放在了位子i上,那么对应取k个位子有(i-1)种方法,那么有: Dp【i】=Dp【i-2】*(i-1); ②如果他放在了位子k上,然后位子k上的这个数字没有放置在位子i上,同时位子k上的数字变成了一个新的问题,那么有: D

AC_Dreameng 2622

【Ubuntu】Ubuntu常见优化设置

本笔记基于 Ubuntu20.04; 因工作需要,需要长期使用Ubuntu系统,在这里记录下Ubuntu系统常见优化设置;

我还可以 2114

因果推断综述-A Survey on Causal Inference

最近读到一篇讲述很全面的综述文献-《A Survey on Causal Inference》,对于接触因果推断不久的同学而言是特别详细的介绍和科普。文献很长,我会分成几部分介绍。 目录 摘要 第一部分:简介 第二部分:因果推断基础知识 第三部分:基于三种假设的因果推断方法 第四部分:实验 第五部分:应用 摘要 几十年来,因果推理是一个跨许多领域的关键研究主题,如统计、计算机科学、教育、公共政策和经济学。与随机对照试验相比,研究方向由于可用数据量大且预算要求低,如今,从观测数据..

海边凝望的博客 3189

第八届福建省大学生程序设计竞赛 省赛回忆

大概是第二次参加福建省的省赛赛吧,和第一次省赛不同的是换了两个队友,然后“”实力变强了?”。 六月十一号正式赛,六月十号从学校出发开始半天的旅程,和蓝桥杯到车站的时间差不多,指导老师在车站等我们,大概一个小时后到了火车站,买票的时候买的有些晚,和他们几个隔开了,不过影响不大。两个小时后到了厦门,先感慨了了一番厦门的好,然后发现真的热,几个人背着书包在太阳下走了半个小时终于到了酒店,然后指导老师一...

FJUT_ACM_cjt152的博客 1819

【硬件自锁开关】用两个D触发器完成实用的自锁开关电路

性价比是做电子设计的人要考虑的事,在学会了用单片机解决大多数问题的时候,是否你也想过用简单的手段解决一个多数场合要解决的问题呢?按一下,输出状态由关闭变成开启,再按一下开启变成关闭。机械弹簧式的开关可以实现自锁的功能:钩子和弹簧将当前状态“储存”起来,这个能量为下一次触发的提供状态“翻转”的动力;在电子设计中,经常通过单片机的程序指令实现自锁:通过寄存器将当前电平状态暂存起来,下一次触发的时候寄存器内容“取反”,再将其输出到端口。可否用电路实现以上过程呢?完全可以,方案很简单,通过两个D触发器即可实现。

qq_33175704的博客 4294

2017第八届福建省大学生程序设计竞赛总结

用L和Y来代表我的两个队友吧。 热盛赛:迟到 + 题目格式看错,GG。 正式赛:A题水水水,求稳,用了7min。B题,计算几何,说实话,第一次做这种题,以前都没刷到过,没思路,直接跳过。L题,暴搜能过,然而,写不出来检查函数的代码,又               跳D题,博弈论,和字符串有关,直接想到kmp算法,WA。。。。忘记了特判,改过来,Y又把代码交到B题去了,==,AC。开了rank

坚持迟早会有收获的!!! 1815

GPS系统跟踪捕获算法的Verilog实现在FPGA

本文将介绍GPS系统中的跟踪捕获算法,并提供该算法的Verilog实现在FPGA上运行的源代码。常用的方法是将接收到的信号与一个本地振荡器产生的参考信号进行混频,然后使用带通滤波器提取出希望得到的频率分量。码跟踪的目的是通过检测接收到的信号中的码片序列来实现对导航数据的解调。以上是一个简化的GPS系统跟踪捕获算法的Verilog实现,其中包含了时间检测、频率跟踪和码跟踪三个模块。GPS信号由载波频率和导航数据组成。跟踪捕获算法的目标是通过对接收到的信号进行处理,从而获取到准确的载波频率和导航数据。

PixelEnigma的博客 1113

DeerFlow 系列教程 第十六篇 | 实战案例一——用 DeerFlow 进行深度研究

在日常使用 AI Agent 时,最常见的需求之一就是对某个主题进行全面、系统的研究。多源信息采集——不能只依赖单次搜索,需要从多个角度搜索不同来源交叉验证——不同来源的信息需要相互印证,避免单一信源的偏差结构化输出——最终产出的不是零散的信息片段,而是有组织的研究报告传统做法是人工反复搜索、阅读、整理。传统手工研究: DeerFlow 深度研究:人工搜索 → 阅读页面 → 记笔记 提交研究主题│ │▼ ▼换关键词 → 再搜索 → 再阅读 ┌──────────────────┐。

weixin_43674738的博客 176

第八届福建省大学生程序设计竞赛-重现赛个人题解

目录 第八届福建省大学生程序设计竞赛-重现赛个人题解 A Frog(签到题) B Triangles(计算几何) C DotA and LOL(1e5的网络流?不会做) D Game(水题) E Doctor(待补) F Change(树状数组) ...

weixin_33672109的博客 338

全球国家地区城市数据

MySQL全球国家地区城市数据报。。。。。。。。。。。。

7.22.17 第八届福建省大学生程序设计竞赛-重现赛

反思排名第10,HDU应该有4支队伍在我们前面代码:打比赛的时候没有保存代码的习惯,所以这次很多题没有,下次应该记得保存代码。 https://github.com/yjc567/HDU_04_Contest_Recoder/tree/master/07_22_17_这次比赛打到后面脑子都有点懵了,自己还是要调整好自己的作息,比赛的5个小时不能犯困。数据结构题要多补,好久没做了(上个学期几乎都没写

Brassica_的菜园 925

lwip-2.0.3

lwip是瑞典计算机科学院(SICS)的Adam Dunkels 开发的一个小型开源的TCP/IP协议栈。实现的重点是在保持TCP协议主要功能的基础上减少对RAM 的占用。

Probability and Statistics - 4th edition

Probability and Statistics - 4th edition

第八届福建省大学生程序设计竞赛-重现赛I Magic

Problem I Magic Accept: 24    Submit: 157 Time Limit: 2000 mSec    Memory Limit : 262144 KB Problem Description Kim is a magician, he can use n kinds of magic, number from 1 to n. We use

三水的鱼塘♂ 501

文档:亲测可用解决vnc灰屏,黑屏,鼠标大黑叉情况

主要解决vnc-viewer灰屏,黑屏,鼠标大黑叉等现象,详细见文档。

第八届福建省大学生程序设计竞赛-重现赛 A Frog

Problem A Frog Accept: 458    Submit: 573 Time Limit: 1000 mSec    Memory Limit : 262144 KB Problem Description Therearex frogs and y chicken in a garden. Kim found there are n heads and

三水的鱼塘♂ 470

第八届福建省大学生程序设计竞赛-重现赛(A+D+K+L)

Problem A Frog:鸡兔同笼。。。。Problem D Game:两人分别有数字a,b。每轮两人有两种操作,1:逆序这个数。2:将个位删去。A先手,当两个数字相同时,A获胜。问A能否获胜。 题解:如果b的位数大于a,B获胜。如果B为0,A获胜。如果b是a的逆序,A获胜,其他情况,如果b是a或者逆序a的子串,A获胜。 代码:忘存了。。。。Problem K Wand:n个人排序,至少k个

妍恐龙的博客....^~^眼熟我 1339

第八届福建省大学生程序设计竞赛-重现赛 L Tic-Tac-Toe

Problem L Tic-Tac-Toe Accept: 248    Submit: 552 Time Limit: 1000 mSec    Memory Limit : 262144 KB Problem Description Kim likes to play Tic-Tac-Toe. Given a current state, and now Kim i

三水的鱼塘♂ 1058

第八届福建省大学生程序设计竞赛-重现赛(感谢承办方厦门理工学院)

RanklistPro.A Frog fzu2272 鸡兔同笼#include<stdio.h> int main() { int t,a,b; scanf("%d",&t); while(t--) scanf("%d%d",&a,&b),printf("%d %d\n",(b/2-a,2*a-b/2); }

qyq 1092

第八届福建省大学生程序设计竞赛-重现赛(F Problem 2277 Change)DFS序+树状数组

Problem 2277 Change Accept: 38 Submit: 241 Time Limit: 2000 mSec Memory Limit : 262144 KBProblem DescriptionThere is a rooted tree with n nodes, number from 1-n. Root’s number is 1.Each node ha

妍恐龙的博客....^~^眼熟我 678

FOJ Problem 2283 Tic-Tac-Toe(暴力枚举)——第八届福建省大学生程序设计竞赛-重现赛

传送门 Kim likes to play Tic-Tac-Toe.Given a current state, and now Kim is going to take his next move. Please tell Kim if he can win the game in next 2 moves if both player are clever enough.Here “next

代码改变世界 1596

FZU2272+Frog+签到题+第八届福建省大学生程序设计竞赛

Problem 2272 Frog Accept: 17    Submit: 23 Time Limit: 1000 mSec    Memory Limit : 262144 KB  Problem Description Therearex frogs and y chicken in a garden. Kim found there are n heads and

hyyjiushiliangxing的博客 434

第八届福建省大学生程序设计竞赛 L.Tic-Tac-Toe【思维+暴力枚举】

Problem 2283 Tic-Tac-Toe Accept: 31    Submit: 42 Time Limit: 1000 mSec    Memory Limit : 262144 KB  Problem Description Kim likes to play Tic-Tac-Toe. Given a current state, and now Kim

mengxiang000000 2351

第八届福建省大学生程序设计竞赛 2280 Magic (字符串hash)

题目原文:  Problem 2280 Magic Accept: 47    Submit: 152 Time Limit: 2000 mSec    Memory Limit : 262144 KB  Problem Description Kim is a magician, he can use n kinds of magic, number from

wchhlbt的博客 592

第八届福建省大学生程序设计竞赛-FZU 2280 HASH处理+暴力搜索

题目:Problem 2280 Magic  Problem Description Kim is a magician, he can use n kinds of magic, number from 1 to n. We use string Si to describe magic i. Magic Si will make Wi points of damage. Note that...

尘的博客 287

第八届福建省大学生程序设计竞赛 FZU 2277 Change (dfs序+树状数组)

题目原文:  Problem 2277 Change Accept: 60    Submit: 354 Time Limit: 2000 mSec    Memory Limit : 262144 KB  Problem Description There is a rooted tree with n nodes, number from 1-n. Root’

wchhlbt的博客 629
上一篇: 2017中国大学生程序设计竞赛——女生专场重现
下一篇: 2018.4.28
sdau_blue
博客等级 码龄10年 291粉丝 610原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值