Skip to content

Baekjoon 13752

1. Problem

문제 확인하기

2. Solution 1 (Python, memory: 31256KB, time: 48ms)

for _ in range(int(input())): print('=' * int(input()))

3. Solution 2 (C++ 17, memory: 2020KB, time: 4ms)

#include <iostream>
#include <string>
#include <string_view>

int main() {
    int n;
    std::cin >> n;
    while (n--) {
        int k;
        std::cin >> k;
        std::string equals(k, '=');
        std::cout << std::string_view(equals) << '\n';
    }
    return 0;
}