카타 8급 Beginner - Lost Without a Map

Jmnote (토론 | 기여)님의 2019년 2월 5일 (화) 19:15 판 (→‎C)

1 개요

카타 8급 C
# 🔗 문제 풀이

틀:카타 8급-35

2 C

#include <stddef.h>
int *maps(const int *arr, size_t size) {
  int *res = calloc(size, sizeof(int));
  for(int i=0; i<size; i++) res[i] = arr[i]*2;
  return res;
}
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}