Submission #469380

# Submission time Handle Problem Language Result Execution time Memory
469380 2021-08-31T17:09:02 Z JovanB Esej (COCI15_esej) C++17
80 / 80
11 ms 844 KB
#include <bits/stdc++.h>
using namespace std;

using ll = long long;
using ld = long double;

string conv(int n){
    string res = "";
    while(n){
        res += 'a' + (n%10);
        n /= 10;
    }
    return res;
}

int main(){
    ios_base::sync_with_stdio(false), cin.tie(0);
    cout.precision(10);
    cout << fixed;

    int a, b;
    cin >> a >> b;
    for(int i=1; i<=b; i++){
        cout << conv(i) << " ";
    }
    return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Correct 0 ms 204 KB Output is correct
3 Correct 0 ms 204 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 1 ms 204 KB Output is correct
6 Correct 2 ms 332 KB Output is correct
7 Correct 9 ms 844 KB Output is correct
8 Correct 11 ms 844 KB Output is correct
9 Correct 9 ms 788 KB Output is correct
10 Correct 9 ms 844 KB Output is correct