제출 #1299203

#제출 시각아이디문제언어결과실행 시간메모리
1299203tabEsej (COCI15_esej)C++20
80 / 80
15 ms15116 KiB
#include "bits/stdc++.h"
using namespace std;
#define intt int
#define fi first
#define se second

const intt mxN = 1e5 + 5;
const intt LG = 20;
const intt inf = 1e18;  
const intt mod = 10007;


intt A, B;
mt19937 rnd(time(NULL));


void _() {
    cin >> A >> B;
    for(intt i = 0; i < B; i++) {
        for(intt c = 0; c < 15; c++)
        cout << char('a' + (rnd() % 26)); 
        cout << " ";
    }
    cout << endl;
}

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    
    intt t = 1, buu = 1;
    // cin >> t;
    while(t--){
        // cout << "Case #" << buu++ << ": ";
        _();
    }
}

컴파일 시 표준 에러 (stderr) 메시지

esej.cpp:9:18: warning: overflow in conversion from 'double' to 'int' changes value from '1.0e+18' to '2147483647' [-Woverflow]
    9 | const intt inf = 1e18;
      |                  ^~~~
#Verdict Execution timeMemoryGrader output
Fetching results...