首页 > 其他 > 详细

p44军事机密secret.cpp

时间:2017-02-19 18:25:11      阅读:257      评论:0      收藏:0      [点我收藏+]

/*************************************************
File name: // 文件名
Author: NBS//作者
Version:2.2.2 //版本
Date: 20017.02.10// 日期
Description: 军事机密// 用于详细说明此程序文件完成的主要功能,与其他模块
*************************************************/
#include<iostream>
#include<cstdio>
#include<cstring>
#include<cmath>
#include<algorithm>
#include<iomanip>
#include<cstdlib>
using namespace std;


int a[30001],b[30001];
int main()
{
int n,p,o,c=1;
cin>>n;
for(int i=1;i<=n;i++)
{
cin>>a[i];
}
for(int k=1;k<=n;k++)
for(int j=k;j<=n;j++)
{
if(a[k]>a[j])
{
p=a[k];
a[k]=a[j];
a[j]=p;
}
}
cin>>o;
for(int l=1;l<=n;l++)
{
cin>>b[l];
while(b[c]!=0)
{
cout<<a[b[c]]<<endl;
c++;
}
}
return 0;






}

 

p44军事机密secret.cpp

原文:http://www.cnblogs.com/mingyudoubijiu/p/6416420.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!