-
Notifications
You must be signed in to change notification settings - Fork 0
Thisayang/Codeforces
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Sorry, we had to truncate this directory to 1,000 files. 2428 entries were omitted from the list. | ||||
Repository files navigation
#include <bits/stdc++.h> #define ll long long int using namespace std; int main() { ios::sync_with_stdio(false), cin.tie(0), cout.tie(0); int n; vector<int> a(100010); cin >> n; for (int i = 0; i < n; ++ i) { cin >> a[i]; if (a[i] == 1) cout << n << " "; else if (a[i] == n) cout << 1 << " "; else cout << a[i] << " "; } cout << endl; return 0; }
About
No description, website, or topics provided.
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published