Submission #421896

# Submission time Handle Problem Language Result Execution time Memory
421896 2021-06-09T13:26:10 Z HappyPacMan Sequence (BOI14_sequence) C++14
0 / 100
2 ms 332 KB
#include <bits/stdc++.h>
using namespace std;

int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

    int K;
    cin >> K;
    int B[K];
    for(int i=0;i<K;i++) cin >> B[i];
    if(B[0] == 0) cout << "1";
    if(K == 1) cout << B[0] << '\n';
    else if(K <= 10) cout << B[0] << "0\n";
    else if(K <= 100) cout << B[0] << "00\n";
    else if(K <= 1000) cout << B[0] << "000\n";
    else if(K <= 10000) cout << B[0] << "0000\n";
    else cout << B[0] << "00000\n";
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Incorrect 2 ms 332 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -