Submission #1038678

# Submission time Handle Problem Language Result Execution time Memory
1038678 2024-07-30T06:01:19 Z vjudge1 Esej (COCI15_esej) C++17
80 / 80
6 ms 860 KB
#include<iostream>

using namespace std;

string f(int x)
{
  string sol;
  while(x > 0)
    sol += 'a' + x % 10, x /= 10;
  return sol;
}

int main()
{
  int b;
  cin >> b >> b;
  for(int i = 1; i <= b; i ++)
    cout << f(i) << ' ';
  cout << endl;
  return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 1 ms 344 KB Output is correct
5 Correct 1 ms 344 KB Output is correct
6 Correct 2 ms 348 KB Output is correct
7 Correct 5 ms 860 KB Output is correct
8 Correct 6 ms 856 KB Output is correct
9 Correct 5 ms 860 KB Output is correct
10 Correct 6 ms 860 KB Output is correct