九度OJ 1097 取中值
来源:互联网 发布:最火歌曲2016网络歌曲 编辑:程序博客网 时间:2024/06/06 10:56
#include<stdio.h>int t;int len1,len2;int a,b,c,d;int array1[1000000];int array2[1000000];int array3[2000000];int l1,l2;int main(int argc, char *argv[]){ scanf("%d",&t); while(t--) { scanf("%d%d",&len1,&len2); for(int i=0;i<len1;++i) scanf("%d",&array1[i]); for(int i=0;i<len2;++i) scanf("%d",&array2[i]); scanf("%d%d%d%d",&a,&b,&c,&d); int j=0; for(int i=a-1;i<b;++i) array3[j++]=array1[i]; for(int i=c-1;i<d;++i) array3[j++]=array2[i]; printf("%d\n",array3[(j-1)/2]); } return 0;} /************************************************************** Problem: 1097 User: kirchhoff Language: C Result: Accepted Time:50 ms Memory:16540 kb****************************************************************/
0 0
- 九度OJ 题目1097:取中值
- 九度OJ 1097 取中值
- 九度OJ 1097 取中值
- 九度OJ 1097:取中值 (中值)
- 九度1097:取中值
- 九度题目1097:取中值
- 题目1097:取中值
- 题目1097:取中值
- 题目1097:取中值
- 九度oj 1097
- 取中值
- 【九度OJ】:九度OJ 1050
- 【九度OJ】:九度OJ 1053
- 【九度OJ】:九度OJ 1056
- 【九度OJ】:九度OJ 1059
- 【九度OJ】:九度OJ 1206
- 九度OJ:1000
- 【九度OJ】 1006
- 趣味XOR
- 开发语言小传之一:最早的编程语言——机器语言
- 炮案秸忧舷杏临肮凡永梅揪衬嫡俳
- linux ubuntu12.04 下的 vasp 5.2 的安装方法
- Floyd算法
- 九度OJ 1097 取中值
- IOS 字典快速转换为Model 模型
- php连接Mysql的增删改查操作
- web开发---给<td>添加超链接
- 寒假计划
- 圃侗靠鸦醇罩该释讯猿赣诽凡涂母
- MySQL 数据库概述及其入门语句
- poj-2251 广搜
- Python在Windows上的安装