This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#pragma GCC optimize ("O3")
#pragma GCC optimize ("unroll-loops")
#pragma GCC optimize("-Ofast")
#include <bits/stdc++.h>
using namespace std;
typedef int in;
#define f first
#define s second
#define pb push_back
#define pp push
#define ceil(x) NEVER USE CEIL
#define sqrt(x) (int)(sqrt(x))
int arr[1000010];
in main()
{
ios_base::sync_with_stdio(0);
int tc=1;
//cin>>tc;
while(tc--)
{
int n;
cin>>n;
int x=1;
while(n--){
x*=2;
}
n=x;
for(int i=0;i<n;i++){
cin>>arr[i];
}
cout<<0<<endl;
sort(arr,arr+n);
for(int i=0;i<n;i++){
cout<<arr[i];
}
cout<<endl;
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |