• + 0 comments

    Typescript (Btw, this is an Unexplained Bad Question, date:16.01.2024)

    function printArray<T>(item: T): void {
        console.log(item);
    }
    
    function main() {
        const numberQuantity = +readLine()
    
        for (let i = 0; i < numberQuantity; i++) {
            printArray(readLine())
        }
    
        const wordQuantity = +readLine()
    
        for (let i = 0; i < wordQuantity; i++) {
            printArray(readLine())
        }
    }