Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김다희
/
echo-program
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
김다희
2019-03-29 22:16:46 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
04c7f0af0a736b817e1b50132d6d6db20f4fb03d
04c7f0af
0 parents
sourcecode
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
63 additions
and
0 deletions
소스.cpp
소스.cpp
0 → 100644
View file @
04c7f0a
/*#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
;
}
Please
register
or
login
to post a comment