/*
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("Hello world!\n");
return 0;
}
#include<stdio.h>
int main()
{
int n, s=0;
scanf("%d", &n);
for(int i=1; i<=n; i++)
{
if(i%2==0)
{
s += i;
}
}
printf("%d", s);
}
*/
// 두수 연산값 비교하기
/*
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
int solution(int a, int b)
{
int answer = 0;
return answer;
}
int main()
{
int a, b;
scanf("%d", &a);
printf("%d", solution(a));
}
/// 배열 TEST
int arr[?] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
3 = arr[2];
for(int i=0; i<numbers_len; i++)
{
printf("%d", arr[i]);
}
#include<stdio.h>
int main()
{
int arr[20] = {89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99};
int numbers_len = 11;
int n=0;
for(int i=0; i<=numbers_len; i++)
{
n += arr[i];
}
printf("%d", n / numbers_len);
return 0;
}
*/
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
int* solution(int money) {
// return 값은 malloc 등 동적 할당을 사용해주세요. 할당 길이는 상황에 맞게 변경해주세요.
int* answer = (int*)malloc(1);
answer[0] = money / 5500; // 몇 잔?
answer[1] = money % 5500; // 잔돈
return answer;
}
//숙제: 피자 나눠 먹기(1) 2023-11-10