Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- #include <algorithm>
- #include <cmath>
- using namespace std;
- int main()
- {
- int n;
- cin >> n;
- double maxim = -100000000000000000;
- double* a = new double[n];
- for (int i = 0; i < n; i++) {
- cin >> a[i];
- if (a[i] > maxim) {
- maxim = a[i];
- }
- }
- for (int i = 0; i < n; i++) {
- if (a[i] != maxim) {
- cout << i+1 << " ";
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement