/ 21班 /

记录详情

Wrong Answer


  
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Standard answer longer than user output. 5ms 412.0 KiB
#2 Wrong Answer Standard answer longer than user output. 4ms 412.0 KiB
#3 Wrong Answer Standard answer longer than user output. 4ms 412.0 KiB
#4 Wrong Answer Standard answer longer than user output. 5ms 412.0 KiB
#5 Wrong Answer Standard answer longer than user output. 11ms 412.0 KiB

代码

#include<bits/stdc++.h>
using namespace std;
int n,m;
struct st
{
	int a[105];
}b[105];
int main()
{
	cin>>n>>m;
	for(int i=1;i<=n;i++)
		for(int j=1;j<=m;j++)
			cin>>b[j].a[i];
	for(int i=1;i<=m;i++)
		sort(b[i].a+1,b[i].a+n+1);
	for(int i=1;i<=n;i++)
	{
		for(int j=1;j<=m;j++)
			cout<<b[j].a[i]<<' ';
		cout<<endl;
	}
	return 0;
}

信息

递交者
类型
递交
题目
P1006 6-6 矩阵的列排序
题目数据
下载
语言
C++
递交时间
2023-08-22 22:47:11
评测时间
2023-08-27 16:13:35
评测机
分数
0
总耗时
31ms
峰值内存
412.0 KiB