[알고리즘 문제] 02. 자연수의 합
2020. 5. 15. 21:48
문제 풀이/알고리즘 문제풀이
코드 #include using namespace std; int main() { int a, b; int sum = 0; cin >> a >> b; for (int i = a; i
[알고리즘 문제] 01. 1부터 N까지 M의 배수합
2020. 5. 14. 18:56
문제 풀이/알고리즘 문제풀이
코드 #include using namespace std; int main() { int n, m; int sum = 0; cin >> n >> m; for (int i = 1; i