Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b2cd6c3

Browse files
committed
Lv1_내적
1 parent 31d31aa commit b2cd6c3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

‎Programmers/Lv1/Lv1_내적.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#include <string>
2+
#include <vector>
3+
4+
using namespace std;
5+
6+
int solution(vector<int> a, vector<int> b) {
7+
int answer = 0;
8+
9+
for (int i = 0; i < a.size(); ++i)
10+
answer += a[i] * b[i];
11+
12+
return answer;
13+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /