algorithm
백준 2741번 N 찍기
YOU__NAVI
2024. 10. 27. 00:15
https://www.acmicpc.net/problem/2741
아이디어:
for문으로 출력
// 2741
#include <iostream>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(NULL);
int n;
cin >> n;
for (int i = 0; i < n; i++) {
cout << i + 1 << "\n";
}
return 0;
}