Problem hidden
|This problem was hidden by Editorial Board member probably because it has incorrect language|version or invalid test data, or description of the problem is not clear.|

RGB7582 - ЭЕШ

Элсэлтийн ерөнхий шалгалтын (ЭЕШ) математикийн дүнг сурагчдын хувийн дугаараар нь жагсаан гаргасан байгаа. Өндөр оноотой сурагчдыг эхэнд нь жагсааж бич. Оноо тэнцсэн тохиолдолд хувийн дугаар багатайг нь эхэнд нь жагсаана. Сурагчдын хувийн дугаар 1, 2, 3, гэх мэтээр үргэлжлэн олгогдсон байгаа.  

Input

Сурагчдын оноо хувийн дугаарын дагуу нэг багана үүсгэн жагссан байгаа.

Мөр бүрт нэг сурагчийн оноо. Сурагчдын нийт тоо 1000-аас бага. Сурачдын оноо нь 0-оос 100 хүртэлх бүхэл тоогоор дүгнэгдэнэ.

Output

Өндөр оноогоор нь нэг багана болгосон жагсаалт. Оноо тэнцсэн сурагчдын хувийн дугаар багатай нь эхэлж жагсана.

Example

Input:

40
50
92
50
40

Output:

3
2
4
1
5


 


Нэмсэн:Bataa
Огноо:2013-02-06
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:ADA95 ASM32 BASH BF C NCSHARP CSHARP C++ 4.3.2 CPP C99 CLPS LISP sbcl LISP clisp D ERL FORTRAN HASK ICON ICK JAVA JS-RHINO JULIA LUA NEM NICE OCAML PAS-GPC PAS-FPC PERL PHP PIKE PRLG-swi PYTHON PYPY3 PYTHON3 RUBY SCALA SCM guile ST TCL WHITESPACE

hide comments
2024-05-13 08:28:02
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
vector<int> mass, mass2,mass3;
while (cin >> n)
{
mass.push_back(n);
}
mass2 = mass;
sort(mass2.begin(), mass2.end(),greater<int>());
int temp = -1;
for(int i=0; i<mass2.size(); i++){
for(int j=0; j<mass.size(); j++){
if(mass2[i] == mass[j] && temp != j){
mass3.push_back(j+1);
temp = j;
break;
}
}
}
for(int i=0; i<mass3.size(); i++){
cout<<mass3[i]<<endl;
}
return 0;
}

what is wrong in my code?
2024-04-26 05:53:54
door bga hun gay
2024-04-26 05:53:16
aladdi madafaka

2024-03-13 01:39:02
Welcome to San Andreas, I'm CJ from Grove Street
Land of the heinous, gang bangers and cold heat
In Los Santos, neighbors get no sleep
Beefing with anybody competin', even police
Four deep in a green rag with gold feet
Blast wit' the flag on the strap, that's OG
Stay in shape, hit the gym, lift the weights
Get supercut and big and buff, nice and straight
You got stats: Respect, weapon skill
Stamina, muscle, fat and sex appeal
You get clothes from Binco, and ProLaps
Suburban, Zip, Victim and D-Sachs
Watch yo' back when them rival hoods
They'll test just to guess if your survival's good (Survival's good)
Duckin' shells at the Cluckin' Bell
Jump out, bus' a gun until they tuck they tail
It seems like I'm on impossible missions
Twisted predicaments, hostile positions
Tenpenny and Pulaski harass me
Cop cars been on our ass the last past week
Cause the 'Dreas's full of gangsters, homeboy
Hands is the language for the bangers, homeboy
And it's dangerous, homeboy
Get your brains 'fore how you do yo fingers, homeboy
Heat cocked, we poppin' hot ones, dump 'em out
Bend the block, shake before the cops come
Listen for sirens, they don't got none
Back another lap, catch a straggler with the shot gun
Hittin' them up, what that Grove Street like
In a dirty slingshot and old Levi's
2024-03-05 03:38:37
fuck t you
2024-01-22 09:45:09
. .
... ...
..... .....
...................
.....................
.....................
...... .......... ......
..........................
........................
......................
..................
.................. ....
.................... ......
...................... .....
............................
...........................
..........................
........................
....................
..................


2024-01-16 05:42:45
Welcome to San Andreas, I'm CJ from Grove Street
Land of the heinous, gang bangers and cold heat
In Los Santos, neighbors get no sleep
Beefing with anybody competin', even police
Four deep in a green rag with gold feet
Blast wit' the flag on the strap, that's OG
Stay in shape, hit the gym, lift the weights
Get supercut and big and buff, nice and straight
You got stats: Respect, weapon skill
Stamina, muscle, fat and sex appeal
You get clothes from Binco, and ProLaps
Suburban, Zip, Victim and D-Sachs
Watch yo' back when them rival hoods
They'll test just to guess if your survival's good (Survival's good)
Duckin' shells at the Cluckin' Bell
Jump out, bus' a gun until they tuck they tail
It seems like I'm on impossible missions
Twisted predicaments, hostile positions
Tenpenny and Pulaski harass me
Cop cars been on our ass the last past week
Cause the 'Dreas's full of gangsters, homeboy
Hands is the language for the bangers, homeboy
And it's dangerous, homeboy
Get your brains 'fore how you do yo fingers, homeboy
Heat cocked, we poppin' hot ones, dump 'em out
Bend the block, shake before the cops come
Listen for sirens, they don't got none
Back another lap, catch a straggler with the shot gun
Hittin' them up, what that Grove Street like
In a dirty slingshot and old Levi's
2024-01-12 09:37:06
"#include<bits/stdc++.h>
int a[1000], n, i, j, k;
int main ()
{
i=0;
while(scanf("%d",&k)!=EOF);
{
i++;
a[i]=k;
}
n=i;
for(i=100; i>=0; i--)
{
for(j=1; j<=n; j++)
if(i==a[j]) printf("%d\n",j);
}
return 0;
}" iim hogiin bodlogo dahiad bitgii oruulj bai hahahah XD
2023-12-15 09:20:00
int n = 0, a[100];
while(cin >> a[n]){
n++;
}
2023-05-22 04:36:01
broda kekw
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.