Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- const int N = 2020;
- int main(){
- int a[N];
- int i,m,k;
- for(i = 0; i< N; ++i)
- cin >> a[i];
- m = 99999;
- for(i=0; i < N; ++i)if(a[i] % 2 != 0 and a[i]/2%2!=0 and a[i] < m) m=a[i];
- for(i=0; i < N; ++i)if(a[i]%2==0 and a[i] > m) a[i] -= m;
- for(i=0; i < N; ++i)cout << a[i];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement