Category
Similar Problems
0124. Massiv24
Time limit : 1000 ms
Memory limit : 64 mb
Bir o`lchamli sonli massivni $max$ elementi bilan $k$ - elementini o`rnini almashtiring. $max$ elementidan bir necha bo`lishi mumkin
Kiruvchi ma`lumotlar: Birinchi satrda $N$ ($1\le N \le 100$). Ikkinchi satrda $N$ ta butun son ($-100\le a[i] \le 100$). Uchinchi satrda $k$ ($1\le k \le 100$).
Chiquvchi ma`lumotlar: $N$ ta son masala yechimi
Input |
---|
3 95 72 -47 1 |
Output |
95 72 -47 |
Input |
---|
6 29 50 -14 4 27 -56 3 |
Output |
29 -14 50 4 27 -56 |