2013年福建省赛ACM题目

MPC模型预测控制实战:从理论到代码实现(Python示例) 本文详细介绍了MPC模型预测控制的实战应用,从理论到Python代码实现。通过构建系统模型、预测方程、优化问题及约束处理,展示了如何实现一个完整的MPC控制器。文章还提供了水箱液位控制的应用案例,帮助读者掌握MPC在工业控制中的实际应用。 阅读详情

Link:http://acm.fzu.edu.cn/problem.php?pid=2146

Problem:

Problem 2146 Easy Game

Accept: 532    Submit: 728
Time Limit: 1000 mSec    Memory Limit : 32768 KB

 Problem Description

Fat brother and Maze are playing a kind of special (hentai) game on a string S. Now they would like to count the length of this string. But as both Fat brother and Maze are programmers, they can recognize only two numbers 0 and 1. So instead of judging the length of this string, they decide to judge weather this number is even.

 Input

The first line of the date is an integer T, which is the number of the text cases.

Then T cases follow, each case contains a line describe the string S in the treasure map. Not that S only contains lower case letters.

1 <= T <= 100, the length of the string is less than 10086

 Output

For each case, output the case number first, and then output “Odd” if the length of S is odd, otherwise just output “Even”.

 Sample Input

4wellthisisthesimplestprobleminthiscontest

 Sample Output

Case 1: EvenCase 2: OddCase 3: OddCase 4: Odd

#include<iostream>
#include<algorithm>
#include<cmath>
#include<cstdio>
using namespace std;
int main()
{
	string s;
	int cas,T;
	while(cin>>T)
	{
		for(cas=1;cas<=T;cas++)
		{
			cin>>s;
			if(s.length()%2==0)
			cout<<"Case "<<cas<<": Even"<<endl;
			else
			cout<<"Case "<<cas<<": Odd"<<endl;
		}
	}
	return 0;
}


Link:http://acm.fzu.edu.cn/problem.php?pid=2147


Problem:

 Problem 2147 A-B Game

Accept: 650    Submit: 1563
Time Limit: 1000 mSec    Memory Limit : 32768 KB

 Problem Description

Fat brother and Maze are playing a kind of special (hentai) game by two integers A and B. First Fat brother write an integer A on a white paper and then Maze start to change this integer. Every time Maze can select an integer x between 1 and A-1 then change A into A-(A%x). The game ends when this integer is less than or equals to B. Here is the problem, at least how many times Maze needs to perform to end this special (hentai) game.

 Input

The first line of the date is an integer T, which is the number of the text cases.

Then T cases follow, each case contains two integers A and B described above.

1 <= T <=100, 2 <= B < A < 100861008610086

 Output

For each case, output the case number first, and then output an integer describes the number of times Maze needs to perform. See the sample input and output for more details.

 Sample Input

25 310086 110

 Sample Output

Case 1: 1Case 2: 7

import java.text.*;
import java.util.*;
import java.math.*;
public class Main
{
	public static void main(String args[])
	{
		Scanner cin=new Scanner(System.in);
		BigInteger a,b,cnt,x;
		int cas,T;
		while(cin.hasNext())
		{
			T=cin.nextInt();
			for(cas=1;cas<=T;cas++)
			{
				a=cin.nextBigInteger();
				b=cin.nextBigInteger();
				cnt=BigInteger.ZERO;
				while(a.compareTo(b)>0)
				{
					x=a.add(BigInteger.ONE).divide(BigInteger.valueOf(2)).subtract(BigInteger.ONE);
					a=a.subtract(x);
					cnt=cnt.add(BigInteger.ONE);
				}
				System.out.println("Case "+cas+": "+cnt);
			}
		}
	}
}


Link:http://acm.fzu.edu.cn/problem.php?pid=2151


Problem:

Problem 2151 OOXX Game

Accept: 569    Submit: 874
Time Limit: 1000 mSec    Memory Limit : 32768 KB

 Problem Description

Fat brother and Maze are playing a kind of special (hentai) game on an N*M board (N rows, M columns). At the beginning, there are N*M coins in this board with two symbol “O” or “X”. Then they take turns to choose a grid with symbol “O” and change it into “X”. The game ends when all the symbols in the board are “X”, and the one who cannot play in his (her) turns loses the game. Fat brother and Maze like this kind of OOXX game very much and play it day and night. They don’t even need a little rest after each game!

Here's the problem: Who will win the game if both use the best strategy? You can assume that Maze always goes first.

 Input

The first line of the date is an integer T, which is the number of the text cases.

Then T cases follow, each case contains two integers N and M indicate the size of the board. Then goes N line, each line with M character shows the state of the board.

1 <= T <=100, 1 <= n <=100, 1 <= m <=100

 Output

For each case, output the case number first, and then output the winner’s name, either Fat brother or Maze. See the sample input and output for more details.

 Sample Input

31 4OXXX2 4OOXXOOXX1 2XX

 Sample Output

Case 1: MazeCase 2: Fat brotherCase 3: Fat brother

#include<iostream>
#include<algorithm>
#include<cmath>
#include<cstdio>
using namespace std;
char b[111][111];
int n,m;
int main()
{
	int cnt,i,j,T,cas;
	while(~scanf("%d",&T))
	{
		for(cas=1;cas<=T;cas++)
		{
			scanf("%d%d",&n,&m);
			cnt=0;
			for(i=0;i<n;i++)
			{
				scanf("%s",b[i]);
				for(j=0;j<m;j++)
				{
					if(b[i][j]=='O')
					cnt++;
				}
			}
			if(cnt%2==1)
			printf("Case %d: Maze\n",cas);
			else
			printf("Case %d: Fat brother\n",cas);
		}
	}
	return 0;
}


Link:http://acm.fzu.edu.cn/problem.php?pid=2150


Problem:

 Problem 2150 Fire Game

Accept: 452    Submit: 1793
Time Limit: 1000 mSec    Memory Limit : 32768 KB

 Problem Description

Fat brother and Maze are playing a kind of special (hentai) game on an N*M board (N rows, M columns). At the beginning, each grid of this board is consisting of grass or just empty and then they start to fire all the grass. Firstly they choose two grids which are consisting of grass and set fire. As we all know, the fire can spread among the grass. If the grid (x, y) is firing at time t, the grid which is adjacent to this grid will fire at time t+1 which refers to the grid (x+1, y), (x-1, y), (x, y+1), (x, y-1). This process ends when no new grid get fire. If then all the grid which are consisting of grass is get fired, Fat brother and Maze will stand in the middle of the grid and playing a MORE special (hentai) game. (Maybe it’s the OOXX game which decrypted in the last problem, who knows.)

You can assume that the grass in the board would never burn out and the empty grid would never get fire.

Note that the two grids they choose can be the same.

 Input

The first line of the date is an integer T, which is the number of the text cases.

Then T cases follow, each case contains two integers N and M indicate the size of the board. Then goes N line, each line with M character shows the board. “#” Indicates the grass. You can assume that there is at least one grid which is consisting of grass in the board.

1 <= T <=100, 1 <= n <=10, 1 <= m <=10

 Output

For each case, output the case number first, if they can play the MORE special (hentai) game (fire all the grass), output the minimal time they need to wait after they set fire, otherwise just output -1. See the sample input and output for more details.

 Sample Input

43 3.#.###.#.3 3.#.#.#.#.3 3...#.#...3 3###..##.#

 Sample Output

Case 1: 1Case 2: -1Case 3: 0Case 4: 2

#include<iostream>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<queue>
#include<vector>
#include<cstdio>
using namespace std;
struct node{
	int r;
	int c;
	int t;
}st1,st2,mapp[111];
int d[4][2]={{0,1},{1,0},{-1,0},{0,-1}},vis[11][11];
int n,m,ans,maxt,cnt,cnt1;
char map[11][11];

bool cango(int r,int c)
{
	if(r>=0&&r<n&&c>=0&&c<m)
	return true;
	return false;
}
void dfs(int r,int c)
{
	int ri,ci;
	vis[r][c]=1;
	for(int i=0;i<4;i++)
	{
		ri=r+d[i][0];
		ci=c+d[i][1];
		if(cango(ri,ci)&&!vis[ri][ci]&&map[ri][ci]=='#')
		{
			dfs(ri,ci);
		}
	}
}
int bfs(int r1,int c1,int r2,int c2)
{
	maxt=0;
	queue<node>Q;
	memset(vis,0,sizeof(vis));
	st1.r=r1;
	st2.r=r2;
	st1.c=c1;
	st2.c=c2;
	st1.t=0;
	st2.t=0;
	vis[r1][c1]=1;
	vis[r2][c2]=1;
	Q.push(st1);
	Q.push(st2);
	node now,next;
	while(!Q.empty())
	{
	   now=Q.front();
	   Q.pop();
	   for(int i=0;i<4;i++)
	   {
	   	next.r=now.r+d[i][0];
	   	next.c=now.c+d[i][1];
	   	if(cango(next.r,next.c)&&!vis[next.r][next.c]&&map[next.r][next.c]=='#')
	   	{
	   		vis[next.r][next.c]=1;
	   		next.t=now.t+1;
	   		Q.push(next);
		}
	   }
	 maxt=max(maxt,now.t);
	}
	return maxt;
}
int main()
{
	int T,cas,i,j,k,tem,fg,l;
	while(scanf("%d",&T)==1)
	{
		cas=0;
		while(T--)
		{
			cas++;
		scanf("%d%d",&n,&m);
		cnt=0;
		for(i=0;i<n;i++)
		{
			scanf("%s",map[i]);
			for(j=0;j<m;j++)
			{
				if(map[i][j]=='#')
				{
					cnt++;
					mapp[cnt].r=i;
					mapp[cnt].c=j;
				}
			}
		}
		cnt1=0;
		memset(vis,0,sizeof(vis));
		for(i=0;i<n;i++)
		{
			for(j=0;j<m;j++)
			{
				if(!vis[i][j]&&map[i][j]=='#')
				{
					dfs(i,j);
					cnt1++;
				}
			}
		}
		//printf("%d\n",cnt1);
		if(cnt1>=3)
		{
			ans=-1;
		}
		else
		{
			//printf("%d",cnt);
			ans=999999;
			for(i=1;i<=cnt;i++)
			{
				for(j=i;j<=cnt;j++)
				{
					st1=mapp[i];
					st2=mapp[j];
					tem=bfs(st1.r,st1.c,st2.r,st2.c);
					//.printf("%d\n",tem);
					fg=1;
					for(k=0;k<n;k++)
					{
						for(l=0;l<m;l++)
						{
						if(!vis[k][l]&&map[k][l]=='#')
						{
							fg=0;
							break;
						}
					   }
					   if(!fg)
					   break;
					}
					if(fg)
					ans=min(tem,ans);
				}
			}
		}
		printf("Case %d: %d\n",cas,ans);
	  }
	}
}


Link:http://acm.fzu.edu.cn/problem.php?pid=2148


Problem:

 Problem 2148 Moon Game

Accept: 434    Submit: 1223
Time Limit: 1000 mSec    Memory Limit : 32768 KB

 Problem Description

Fat brother and Maze are playing a kind of special (hentai) game in the clearly blue sky which we can just consider as a kind of two-dimensional plane. Then Fat brother starts to draw N starts in the sky which we can just consider each as a point. After he draws these stars, he starts to sing the famous song “The Moon Represents My Heart” to Maze.

You ask me how deeply I love you,

How much I love you?

My heart is true,

My love is true,

The moon represents my heart.

…

But as Fat brother is a little bit stay-adorable(呆萌), he just consider that the moon is a special kind of convex quadrilateral and starts to count the number of different convex quadrilateral in the sky. As this number is quiet large, he asks for your help.

 Input

The first line of the date is an integer T, which is the number of the text cases.

Then T cases follow, each case contains an integer N describe the number of the points.

Then N lines follow, Each line contains two integers describe the coordinate of the point, you can assume that no two points lie in a same coordinate and no three points lie in a same line. The coordinate of the point is in the range[-10086,10086].

1 <= T <=100, 1 <= N <= 30

 Output

For each case, output the case number first, and then output the number of different convex quadrilateral in the sky. Two convex quadrilaterals are considered different if they lie in the different position in the sky.

 Sample Input

240 0100 00 100100 10040 0100 00 10010 10

 Sample Output

Case 1: 1Case 2: 0

思想:

判断是不是凹四边形。

如果四边形有一个点在另外三个点组成的三角形内部,这个四边形就是凹四边形,否则就是凸四边形。

凹四边形内部那个点和其余任意两点可以组成三个三角形,这三个三角形面积的和恰好为外部三个点组成的三角形面积。
根据三角形三个点的二维坐标求三角形面积有个公式:abs(p[a].x * p[b].y + p[c].x * p[a].y + p[b].x * p[c].y - p[c].x * p[b].y - p[a].x * p[c].y - p[b].x * p[a].y) * 0.5。
解题思路

  这题目很简单:给多个不重复坐标点,求不重复的凸四边形个数。而且n最大是30,所以枚举所有四个点的组合。而判断是否构成凸四边的条件是:1:四点组合中要存在两条交叉的直线  2:四点组合中不能存在 “一个点在其他三个点组成的三角形 内部"(本代码选择的方案)。

代码

[cpp]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. #include<stdio.h>  
  2. #include<math.h>  
  3. struct point  
  4. {  
  5.     double x;  
  6.     double y;  
  7. }all[40];  
  8. double area(int a, int b, int c)  
  9. {  
  10.     return fabs(all[b].x*all[a].y - all[c].x*all[a].y - all[a].x*all[b].y + all[c].x*all[b].y + all[a].x*all[c].y - all[b].x*all[c].y) / 2;//求三角形面积  
  11. }  
  12. bool ok(int a, int b, int c, int d)  
  13. {  
  14.     if (area(a, b, c) == (area(a, b, d) + area(a, d, c) + area(d, b, c)))  
  15.         return false;  
  16.     return true;  
  17. }  
  18. int main()  
  19. {  
  20.     int t;  
  21.     scanf("%d", &t);  
  22.     for (int k = 1; k <= t; k++){  
  23.         int n;  
  24.         scanf("%d", &n);  
  25.         for (int i = 0; i < n; i++){  
  26.             scanf("%lf%lf", &all[i].x, &all[i].y);  
  27.         }  
  28.         int ans = 0;  
  29.         printf("Case %d: ", k);  
  30.         for (int i = 0; i < n; i++)  
  31.         for (int j = i + 1; j < n; j++)  
  32.         for (int e = j + 1; e < n; e++)  
  33.         for (int f = e + 1; f < n; f++){  
  34.             if (ok(i, j, e, f) && ok(f, j, e, i) && ok(i, f, e, j) && ok(i, j, f, e)){  
  35.                 ans++;  
  36.             }  
  37.         }  
  38.         printf("%d\n", ans);  
  39.     }  
  40.     return 0;  
  41. }  


【技术科普】破解政务跨系统数据壁垒!亘川一网统管平台多源数据同步技术解析 本文解析亘川一网统管平台多源数据同步技术,针对政务跨系统数据壁垒难题,介绍组件的数据采集、校验、审计留痕等核心能力,结合营商环境项目落地案例,对比传统开发模式差异,讲解开源组件的实践价值,为政务项目开发者提供落地参考。 阅读详情

相关推荐

腾讯会议+OBS虚拟摄像头:解决多人屏幕共享的终极指南(附常见问题排查)

本文详细介绍了如何利用OBS虚拟摄像头技术,解决腾讯会议中多人屏幕共享的痛点。通过将OBS作为视频混流中心,可以突破腾讯会议单屏共享的限制,实现多屏幕、多窗口内容的同步展示,并提升演示的专业度。文章涵盖了Windows与Linux双平台的配置步骤、高阶场景搭建以及常见问题(如黑屏、画中画)的排查方法,是团队协作与专业演示的实用指南。

i8j9k0l1的博客 931

flash 小游戏大全

http://www.xiaoyouxi.com/http://www.4399.com/http://yule.sohu.com/flashgame.shtml   Flash游戏-最新FLASH-极酷动漫-搜狐娱乐

xubaogongChina的专栏 2万+

RK3576平台部署NanoTrack:边缘AI视觉跟踪实战指南

边缘AI部署是将深度学习模型在资源受限的嵌入式设备上高效运行的关键技术,其核心在于模型压缩、硬件适配与软件栈优化。通过INT8量化、算子融合与内存优化等原理,能显著降低模型计算量与内存占用,从而在嵌入式NPU上实现实时推理。这项技术的价值在于为安防监控、无人机视觉、工业检测等场景提供低功耗、高响应的智能感知能力。以瑞芯微RK3576平台部署轻量级视觉跟踪模型NanoTrack为例,其过程涉及模型结构分析、RKNN工具链转换、C++推理程序开发及多线程性能优化,完整展现了从算法到产品的工程化路径,为开发者提供

weixin_31887307的博客 426

FZU 2264 Card Game (First Edition)(数学概率题)

Problem 2264 Card Game (First Edition) Accept: 114    Submit: 343 Time Limit: 1000 mSec    Memory Limit : 32768 KB  Problem Description Fat brother and Maze are playing a kind of special (

qq_37164003的博客 623

CentOS 7下Oracle 11G RAC静默安装避坑指南:从网络规划到共享存储配置全流程

本文详细介绍了在CentOS 7环境下进行Oracle 11G RAC静默安装的全流程,包括网络规划、共享存储配置和系统参数调优等关键步骤。特别针对静默安装过程中的常见问题提供了实用的避坑指南和优化建议,帮助技术人员高效完成企业级数据库部署。

weixin_29234509的博客 124

华大HC32F460 TCP Client 实验

华大HC32F460 TCP Client 实验

ZhuoWuKeJi的博客 649

【期望】fuzoj 2265 Card Game (Second Edition)

http://acm.fzu.edu.cn/problem.php?pid=2265

Hi_jiaxinwei的博客 7025

AD9361 RSSI配置实战:从寄存器到精准功率测量的避坑指南

本文详细解析了AD9361芯片的RSSI配置实战,从寄存器设置到精准功率测量的全流程避坑指南。通过优化模式选择、测量持续时间及高级参数配置,实现高精度信号强度测量,并分享实际项目中的校准流程与性能优化技巧,帮助工程师提升射频接收链路的测量精度。

weixin_38166557的博客 442

OOXX Game

Think: 这次组队赛的水题。。。。 判断 O 是奇数还是偶数 然后对应输出就可以了~~~Problem DescriptionFat brother and Maze are playing a kind of special (hentai) game on an N*M board (N rows, M columns). At the beginning, there are N

不积跬步,无以至千里 1万+

如何点亮一颗sensor

要点亮一个sensor需要从,时钟、sensorI2C,供电,reset脚,mipi的配置几个方面一一确认。 reset脚拉高 给sensor的时钟有没有。(目前用到的常为24MHZ) 供电 查看sensor的数据手册,看有几个电源,用示波器量一下是否为手册规定的电压 比如:DVDD 数字电压: AVDD模拟电压 DOVDD芯片引脚出来的电压等为多少。 sensor的I2C能否抓到 将I2C的口对应上,用示波器量取i2c的波形。 检查有应答并且数据正确。读写地址是否正...

weixin_40787463的博客 3646

深度残差网络的无人机多目标识别

深度残差网络的无人机多目标识别 人工智能技术与咨询 来源:《图学学报》。作者翟进有等 摘要:传统目标识别算法中,经典的区域建议网络(RPN)在提取目标候选区域时计算量大,时间复杂度较高,因此提出一种级联区域建议网络(CRPN)的搜索模式对其进行改善。此外,深层次的卷积神经网络训练中易产生退化现象,而引入残差学习的深度残差网络(ResNet),能够有效抑制该现象。对多种不同深度以及不同参数的网络模型进行研究,将两层残差学习模块与三层残差学习模块结合使用,设计出一种占用内存更小、时间复杂度更低的新型多捷.

m0_62870606的博客 3110

FZU 2148 Moon Game

Description Fat brother and Maze are playing a kind of special (hentai) game in the clearly blue sky which we can just consider as a kind of two-dimensional plane. Then Fat brother starts to draw N

fuckohmylove的专栏 7714

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

2011福建省ACM省赛暨福州区域赛晋级赛总结

<br />      这次福州一行路漫漫,从长春出发,3个小时动车到沈阳,住一宿,第二天一大早从沈阳14个小时的动车上海,又住一宿。。然后第二天又是一大早起床3个小时动车到福州。。而且此次RP暴低,本来我们都想着,根据RP守恒,应该会在比赛里面体现RP一点,但是。。哎。。充满了悲剧色彩,第一个悲剧,待在福州的2天3夜全下着雨,第二个悲剧,见识到了传说中的6人房间。。第三个悲剧,福州赛的午餐的确很糟糕。。各种烂。<br />    然后各种悲剧交加之后,就是更加令人纠结的热身赛了,老样子,A,B,C三题,A

FuthorclySLM 5738

C# WinForm 基于DirectShow.dll编写的程序,可边预览边保存视频,音频和图片

基于微软的DirectShow.dll的二次开发1.自动识别连接的摄像头跟麦克风且可以对其进行选择(默认选中第一个)2.可录制wmv和avi两种格式的视频并且都带有音频,avi可以录制的分辨率和帧数进行选择,wmv默认进行了淸晰度优化如不喜欢可去除代码中有相关提示3.可在预览点开之后进行拍照,也可边录制视频边拍照4.添加了视频和音频的压缩功能(酌情使用)这次二次开发发现C#对DirectShow的相关信息太少,这次做完也不敢藏私共享出来,还望大家指正

锂电池充电器电路设计 里面有电路

锂电池充电器电路设计 里面有电路 3.7V升压到5V电路设计。

SMU-ACM2025夏训周报1st

一.前言。

LWH0529的博客 718

计算机控制技术及应用

《计算机控制技术及应用》通过总结作者的科研成果和吸收国内外的先进理论、方法和技术,以计算机控制系统的网络化、开放化、智能化和集成化发展趋势为主线索,主要介绍计算机控制系统的基本概念和计算机控制系统的典型形式,计算机控制系统的数学描述与基本分析方法,以及数字PID控制器、最少拍控制系统、达林算法、状态变量设计法等设计方法及其各种改进算法。重点突出计算机控制系统输入输出通道接口的设计方法和典型控制系统的设计案例与实现方法等。

2023年第十四届蓝桥杯JavaB组省赛真题及全部解析(上)

2023年第十四届蓝桥杯Java B组省赛全部解析(上)。

2301_80035594的博客 2387

[蓝桥杯]欢迎参加福建省大学生程序设计竞赛【算法赛】

​ 问题描述 20232023 年 1313 月 32∼3332∼33 日,福建省第十一届大学生程序设计竞赛在东南大学如期举办。来自厦门大学、福州大学、集美大学、华侨大学、福建师范大学等 100100 所高校的 nn 支队伍参赛。 华侨大学“红日初升”代表队,以 1313 题 960960 罚时,夺得冠军(第 11 名); 厦门大学“点分治分点”代表队、福州大学“西南饺子馆”代表队, 1212 题 950950 罚时,以一模一样的罚时和题数,并列亚军(第 22 名); 福建师范大学“夜幕降临”代表队、福建

qq_2937655951的博客 1146

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

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

FJUT_ACM_cjt152的博客 1818

2014年第五届福建省大学生程序设计竞赛省赛6题题解

比赛题目在:http://acm.fafu.edu.cn/problemList.php?volume=6 热身赛题fafuoj1557-1559共3题 省赛题fafuoj1563-1572共10题 第一天热身赛 A题签到题,B题我觉得是用字典树模版+博弈+DFS,code4101把字典树模版敲上去,我写了3行的DFS,1Y,之后就开始测环境,C题看了下感觉不太好做,最后热身赛排第

bnmjmz的专栏 1771

2013年福建省程序设计竞赛省赛题解

Problem 2140 Forever 0.5传送门 思路:构造。首先小于4无解。 大于4的情况,前4个点作为ABCD,之后的点全部放在ADˆ\widehat{AD}上就行了 复杂度:O(n)O(n) #include <cstdio> #include <iostream> #include <cmath> #include <algorithm> #include <set> #inc

qwb的博客 1025

ACM 福建省省赛 D题 Game

滴,集训第六天打卡。 今天做的是福建省省赛的重现赛... 可以说是打铁了一下午... 省赛的题目都很灵活啊..dota...lol..yys... A了三题..感觉最后两题是可以做的但是没写出来... 这里贴D题 Game Alice and Bob is playing a game. Each of them has a number. Alice’s number is

请赐教 929

ACM刷题系列(一)简单模拟 —— 斐波那契

ACM内蒙古自治区省赛第一题2020年内蒙古自治区ACM省赛第一题题目分析解题思路 2020年内蒙古自治区ACM省赛第一题 题目分析 本题的难点在与当F(N)中的N较大时,F(N)的值比较大容易溢出。此外F(1)*F(…)的值也比较大,也会溢出。 解题思路 我们首先算出题目要用的所有F(N),到时候直接用这个值。在计算过程中计算完每一个F(N)都对MOD取余数。 每一次F(i) 相乘时,都对MOD取余。 // c++代码`在这里插入代码片` #include<iostream>

weixin_49680717的博客 359

2025年ICPC全国邀请赛、CCPC全国邀请赛、各省ACM省赛补题链接汇总

ACM/XCPC,2025年省邀请赛补题链接大合集

2401_88501775的博客 7065

一个ACM底层参赛选手的退役感言

一个ACM底层参赛选手的退役感言 大概是大学生活最有意义最有回忆的一年了吧,借着年底的最后几天写一下退役总结吧。直到现在还是感觉自己是个还在打比赛的选手。在高中毕业的时候选专业的时候纠结很久,本来在高中想的是奔着医学或者生物学方向选的专业,因为那时自认为是一个在这方面比较有天赋的人,但是最终也是没有选吧,因为种种原因吧,最后还是选择了计算机类专业。后来报志愿的时候第一所大学的第一个专业录取我也就

FJUT_ACM_cjt152的博客 4575

2017acm福建省赛FZU2272 Frog

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

要做ADC 1189

2017acm福建省赛FZU 2278 YYS

Problem 2278 YYS Accept: 31    Submit: 94 Time Limit: 1000 mSec    Memory Limit : 262144 KB Problem Description Yinyangshi is a famous RPG game on mobile phones. Kim enjoys collecting c

要做ADC 1650

ACM_总论_ACM界的教主级别人物

AC大牛!     ACRush: 江湖人称“楼教主”,真名楼天城,毕业于杭州十四中,是目前公认的中国计算机程序设计竞赛第一人,经常以一人单挑全场所有队而无往不胜,现于清华大学理论计算机中心随姚期智院士攻读博士。 在世界各场个人赛与团队赛中,ACRush这个ID总是伴随着一种叫作BUG的东西同时出现。自2001年起参赛的楼教主,摘取各种竞赛桂冠数不胜 数。在近五年的重要比赛中,

技术札记 6045
上一篇: The Euler function
下一篇: Escape(匈牙利算法变形)
林下的码路
博客等级 码龄12年 295粉丝 506原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

林下的码路

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值