数据结构实验之数组三:快速转置
来源:互联网 发布:开源大数据可视化工具 编辑:程序博客网 时间:2024/05/23 23:27
#include<stdio.h>#include<algorithm>struct node{ int x,y,v;}a[100000];int cmp(node a,node b){ return a.x<b.x;}int main(){ int m,n,t; while(~scanf("%d%d%d",&m,&n,&t)) { for(int i=0;i<t;++i) { scanf("%d%d%d",&a[i].y,&a[i].x,&a[i].v); } std::stable_sort(a,a+t,cmp); int l=0,q; for(int i=0;i<t;++i) printf("%d %d %d\n",a[i].x,a[i].y,a[i].v); } return 0;}
0 0
- 数据结构实验之数组三:快速转置
- 数据结构实验之数组三:快速转置
- 数据结构实验之数组三:快速转置(sdut_3347)
- 数据结构实验之数组三:快速转置
- 数据结构实验之数组三:快速转置
- SDUT3347数据结构实验之数组三:快速转置
- 数据结构实验之数组三:快速转置
- 数据结构实验之数组三:快速转置
- 数据结构实验之数组三:快速转置
- 数据结构实验之数组三:快速转置
- 数据结构实验之数组三:快速转置
- 数据结构实验之数组三:快速转置
- 数据结构实验之数组三:快速转置
- 数据结构实验之数组三:快速转置
- 数据结构实验之数组三:快速转置
- 数据结构实验之数组三:快速转置
- 数据结构实验之数组三:快速转置
- 数据结构实验之数组三:快速转置
- You need to use a Theme.AppCompat theme (or descendant) with this activity.
- Android studio必做的几个优化配置。
- CodeForces-732B-Cormen — The Best Friend Of a Man(简单模拟)
- Linux PWM framework_简介和API描述
- “无法查找或打开PDB文件”解决办法
- 数据结构实验之数组三:快速转置
- 【android】第三方集成之——极光推送
- PMP学习笔记之第13章 项目干系人管理 ——13.2规划干系人管理
- python3 模块构建与发布
- 23 leetcode - Generate Parentheses
- Android Retrofit框架解析
- 51Nod 1629 B君的圆锥
- React Native技术剖析(二)
- Unity 编辑器多重编辑 Multi-Object Editing