CodeForces 136 A.Presents(水~)
来源:互联网 发布:海知智能 编辑:程序博客网 时间:2024/05/21 00:47
Description
Input
第一行一整数
Output
输出
Sample Input
4
2 3 4 1
Sample Output
4 1 2 3
Solution
水题,拿个数组映射一下即可
Code
#include<cstdio>#include<iostream>#include<cstring>#include<algorithm>#include<cmath>#include<vector>#include<queue>#include<map>#include<set>#include<ctime>using namespace std;typedef long long ll;typedef pair<int,int>P;const int INF=0x3f3f3f3f,maxn=100001;int n,a[maxn];int main(){ while(~scanf("%d",&n)) { for(int i=1;i<=n;i++) { int b; scanf("%d",&b); a[b]=i; } for(int i=1;i<=n;i++)printf("%d%c",a[i],i==n?'\n':' '); } return 0;}
阅读全文
0 0
- CodeForces 136 A.Presents(水~)
- Presents(CodeForces 136A)
- CodeForces-136A-Presents
- CodeForces 136A Presents
- codeforces 136A Presents
- codeforces 136A Presents(水题)
- Codeforces 136A-Presents(题意)
- codeforces 136A(Presents) Java
- Problem--136A--Codeforces--Presents
- 【CodeForces】669A - Little Artem and Presents(找规律)
- 136A - Presents
- CodeForces 669A Little Artem and Presents
- CodeForces 669A Little Artem and Presents
- 【CodeForces】669A - Little Artem and Presents
- 【CodeForces】[669A]Little Artem and Presents
- CodeForces 669A Little Artem and Presents
- codeforces 669A Little Artem and Presents
- 【水模拟】#50 A. Presents
- [JS] JS递归常见问题
- oracle(01): 创建表,主键自增长,注解,视图,序列
- 中缀表达式转后缀表达式(又称逆波兰式)
- Convert Sorted List to Binary Search Tree
- 清除匿名定时器
- CodeForces 136 A.Presents(水~)
- tensorflow1.3.0安装注意
- StampedLock的简单用法
- 谈谈刚被西数吞并的闪存公司——Tegile System
- java实现二叉树,以及二叉树的遍历和先序和后序求解
- 编码格式简介:ASCII码、ANSI、GBK、GB2312、GB18030和Unicode、UTF-8,BOM头
- PATbasic1004
- 方向梯度直方图(HOG,Histogram of Gradient)
- 【Mybatis】——foreach使用方式