Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int n;
- int main() {
- printf("%d\n",n=200000);
- for(int i=1;i<=n;i++) {
- if(i<=n/2-1) {
- printf("1 ");
- }else if(i>=n/2+2) {
- printf("4 ");
- }else {
- printf("%d ",i-(n/2)+2);
- }
- }
- printf("\n");
- for(int i=1;i<=n;i++) {
- if(i<=n/2-1) {
- printf("1 ");
- }else if(i>=n/2+2) {
- printf("7 ");
- }else {
- printf("%d ",(n/2+3)-i);
- }
- }
- printf("\n");
- return 0;
- }
- Answer: 299997
- Output: 299999
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement