A. GukiZ and Contest-Codeforces Round #307 (Div. 2)-简单水题
来源:互联网 发布:linux wexitstatus 编辑:程序博客网 时间:2024/05/29 03:13
#include <cstring>#include <string>#include <algorithm>#include <iostream>#include <queue>#include <map>#include <set>#include <vector>using namespace std; int a[2000+5];int vis[2000+5];int main(){int i,j,n;scanf("%d",&n); for (i=1;i<=n;i++) { scanf("%d",&a[i]); vis[a[i]]++; } for (i=1;i<=n;i++) { int cun=0; for (j=2000;j>a[i];j--) { if (vis[j]) cun+=vis[j]; } if (i!=1) printf(" "); printf("%d",1+cun); }cout<<endl;return 0;}
0 0
- A. GukiZ and Contest-Codeforces Round #307 (Div. 2)-简单水题
- [水题]Codeforces Round #307 (Div. 2) A.GukiZ and Contest
- Codeforces Round #307 (Div. 2) A. GukiZ and Contest
- contest: Codeforces Round #307 (Div. 2), problem: (A) GukiZ and Contest
- Codeforces Round #307 (Div. 2) A. GukiZ and Contest (暴力)
- Codeforces Round #307 (Div. 2)--C. GukiZ hates Boxes、D. GukiZ and Binary Operations
- CodeForces-551A GukiZ and Contest
- 【74.89%】【codeforces 551A】GukiZ and Contest
- codeforces 551A GukiZ and Contest
- Codeforces Round #442 (Div. 2) A. Alex and broken contest
- Codeforces Round #442 (Div. 2) A Alex and broken contest
- Codeforces Round #442 (Div. 2) A. Alex and broken contest
- A. GukiZ and Contest
- Codeforces Round #307 (Div. 2) D. GukiZ and Binary Operations(数学)
- Codeforces Round #307 (Div. 2)E. GukiZ and GukiZiana(分块)
- Codeforces Round #307 (Div. 2) D. GukiZ and Binary Operations (矩阵快速幂)
- Codeforces Round #307 (Div. 2) E. GukiZ and GukiZiana (分块)
- Codeforces Round #307 (Div. 2) 551D - GukiZ and Binary Operations 矩阵快速幂
- C++(13)STL实践与分析之再谈String类型
- Arduino入门知识
- IO流
- JavaScript——实现时间的动态显示
- maven使用私服(其他我没测试)无法导入jar文件问题
- A. GukiZ and Contest-Codeforces Round #307 (Div. 2)-简单水题
- 【CF245H】【Queries for Number of Palindromes】
- android 设置全屏,窗口透明度,待机设置,主题设置总结
- Objective-C文章中的生词
- hdu 5340 Three Palindromes
- POJ-2242 The Circumference of the Circle-已知三点共圆求周长
- C++(14)STL分析与实践之容器适配器
- Codeforces Round #274 (Div. 2)E. Riding in a Lift
- JS闭包与内存泄漏