求助

老方  •  3个月前


我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know! 我不会!I don't know!


Comments:

用二维数组


jaypei  •  3个月前

栓Q


老方  •  2个月前

include

using namespace std; int a[100][100],n; int main(){

cin>>n;
for(int i=0;i<n;i++){
	for(int j=0;j<n;j++){
		cin>>a[i][j];
	}
}
for(int i=0;i<n;i++){
	int maxn=-1;
	int tmp;
	for(int j=0;j<n;j++){
		if(a[i][j]>maxn){
			maxn=a[i][j];
		    tmp=j;
		}
	}
	int minn=1001;
	for(int k=0;k<n;k++){
		if(a[k][tmp]<minn){
			minn=a[k][tmp];
		}
	}
	if(minn==maxn){
		cout<<maxn;
	}
}
return 0;

} 就这个


sunhuifeng  •  1个月前

给你个礼物


老方  •  14天前

好奇怪的游戏

题目背景

《爱与愁的故事第三弹·shopping》娱乐章。

调调口味来道水题。

题目描述

爱与愁大神坐在公交车上无聊,于是玩起了手机。一款奇怪的游戏进入了爱与愁大神的眼帘:***(游戏名被打上了马赛克)。这个游戏类似象棋,但是只有黑白马各一匹,在点 x_1,y_1x_2,y_2 上。它们得从点 x_1,y_1x_2,y_2 走到 (1,1)。这个游戏与普通象棋不同的地方是:马可以走“日”,也可以像象走“田”。现在爱与愁大神想知道两匹马到 (1,1) 的最少步数,你能帮他解决这个问题么?

注意不能走到 xy 坐标 \le 0 的位置。

输入格式

第一行两个整数 x_1,y_1

第二行两个整数 x_2,y_2

输出格式

第一行一个整数,表示黑马到 (1,1) 的步数。

第二行一个整数,表示白马到 (1,1) 的步数。

样例 #1

样例输入 #1

12 16
18 10

样例输出 #1

8 
9

提示

数据范围及约定

对于 100\% 数据,1\le x_1,y_1,x_2,y_2 \le 20


老方  •  14天前

洛谷 P1747


老方  •  14天前