답안 #293382

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
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 << " ";
    }
}

# 결과 실행 시간 메모리 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