Submission #24889

#TimeUsernameProblemLanguageResultExecution timeMemory
24889RezwanArefin01Sequence (BOI14_sequence)C++14
0 / 100
0 ms2116 KiB
//Bismillahir Rahmanir Rahim #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> ii; int main(int argc, char const *argv[]) { #ifdef LOCAL_TESTING freopen("in", "r", stdin); #endif int k; cin>>k; int a[k]; for(int i=0; i<k; i++) { cin>>a[i]; } if(k == 1) { cout<<a[0]<<endl; return 0;} int dig = log10(k) + 1; int ans = a[0]; for(int i=0; i<dig; i++) ans *= 10; cout<<ans<<endl; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...