Notice
Recent Posts
Recent Comments
«   2025/04   »
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
Tags more
Archives
Today
Total
관리 메뉴

Share Garam's everyday life.

내적 본문

알고리즘

내적

가람스나이퍼님 (Joshua_Choi_Brother) 2021. 4. 21. 21:02

#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>

// a_len은 배열 a의 길이입니다.
// b_len은 배열 b의 길이입니다.
int solution(int a[], size_t a_len, int b[], size_t b_len) {
    int answer = 0;
    
    for(int i=0; i<a_len; i++){
        answer+=a[i]*b[i];
    }
    
    return answer;
}

'알고리즘' 카테고리의 다른 글

두 정수 사이의 합  (0) 2021.04.22
음양 더하기  (0) 2021.04.21
3진법 뒤집기  (0) 2021.04.21
소수 만들기  (0) 2021.04.21
가운데 글자 가져오기  (0) 2021.04.21