Skip to content

Commit 56e2e08

Browse files
authored
math
1 parent e136efc commit 56e2e08

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//https://programmers.co.kr/learn/courses/30/lessons/86051
2+
//math
3+
#include <string>
4+
#include <vector>
5+
6+
using namespace std;
7+
8+
int solution(vector<int> numbers) {
9+
int ans =0;
10+
for (int i = 0; i < 10; ++i) ans += i;
11+
for (auto x : numbers) ans -= x;
12+
return ans;
13+
}

0 commit comments

Comments
 (0)