Submission #293382

# Submission time Handle Problem Language Result Execution time Memory
293382 2020-09-08T01:34:43 Z 7_7_7 Esej (COCI15_esej) C++17
80 / 80
29 ms 2048 KB
#include <bits/stdc++.h>

using namespace std;

int A, B;
string createWord(int sz = 15){
    string s = "";
    while((int)s.size() < sz){
        s += char((rand() % 26) + 'a');
    }
    return s;
}
int main()
{
    srand(time(NULL));
    ios_base::sync_with_stdio(false);

    cin >> A >> B;
    for(int i = 1; i <= B; i ++){
        cout << createWord();
        if(i != B) cout << " ";
    }
}

# Verdict Execution time Memory Grader output
1 Correct 1 ms 384 KB Output is correct
2 Correct 1 ms 416 KB Output is correct
3 Correct 1 ms 384 KB Output is correct
4 Correct 1 ms 384 KB Output is correct
5 Correct 2 ms 384 KB Output is correct
6 Correct 7 ms 768 KB Output is correct
7 Correct 26 ms 2048 KB Output is correct
8 Correct 29 ms 2040 KB Output is correct
9 Correct 26 ms 1920 KB Output is correct
10 Correct 26 ms 1920 KB Output is correct