소스.cpp
1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*#include <iostream>
#include <vector>
#include <queue>
using namespace std;
void com(int &pointNum, int &lineNum, int &startNum, vector<vector<int> > &a);
vector<int> calcLength(int startNum, vector<vector<int> > a);
void print();
int main() {
int pointNum, lineNum, startNum;
vector< vector<int> > arr;
com(pointNum, lineNum, startNum, arr);
return 0;
}
void com(int &pointNum, int &lineNum, int &startNum, vector<vector<int> > &a) {
cin >> pointNum >> lineNum >> startNum;
for (int i = 0; i < lineNum; i++) {
for (int j = 0; j < 3; j++) {
int num;
cin >> num;
a[i].push_back(num);
}
}
}
vector<int> calcLength(int pointNum, int startNum, vector<vector<int> > a) {
vector<int> result;
for (int i = 1; i < pointNum+1; i++) {
if (i != startNum) {
result.push_back(987654321);
}
else {
result.push_back(0);
}
}
}
void print() {
}
*/
#include<iostream>
using namespace std;
int main() {
int a;
cin >> a;
for (int i = 1; i < a+1; i++) {
for (int j = 0; j < i; j++) {
cout << "*";
}
cout << endl;
}
return 0;
}