๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
Algorithm ๐Ÿง‘๐Ÿป‍๐Ÿ’ป/๋ฐฑ์ค€(BOJ)

[๋ฐฑ์ค€,c++] 11721๋ฒˆ - ์—ด ๊ฐœ์”ฉ ๋Š์–ด ์ถœ๋ ฅํ•˜๊ธฐ

by dkswnkk 2021. 10. 31.
#include <iostream>
#include <string>

using namespace std;

int main() {
    string N;
    getline(cin, N);

    for (int i = 0; i < N.size(); i++) {
        cout << N.at(i);
        if ((i + 1) % 10 == 0) {
            cout << "\n";
        }
    }
    cout << "\n";

}

๋Œ“๊ธ€