/*#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("Hello world!\n");
return 0;
}
*/
/*#include <stdio.h>
void rec (int n)
{
if(n==0) {
printf("0");
return ;
}
if(n==1) {
printf("1");
return ;
}
rec(n/2);
printf("%d",n%2);
}
int main ()
{
int n;
scanf("%d",&n);
rec(n);
return 0;
}
*/
/*#include <stdio.h>
void rec (int n)
{
if(n==0) return ;
if(n>=26){
rec((n-1)/26);
}
printf("%c",(n-1)%26+65);
}
int main ()
{
int n;
scanf("%d",&n);
rec(n);
return 0;
}
*/
/*#include <stdio.h>
int main ()
{
int n;
scanf("%d",&n);
if(n<=500) printf("%d",n*70/100);
else if(500<n&&n<=1500) printf("%d",350+(n-500)*40/100);
else if(1500<n&&n<=4500) printf("%d",750+(n-1500)*15/100);
else if(4500<n&&n<=10000) printf("%d",1200+(n-4500)*5/100);
else printf("%d",1475+(n-10000)*2/100);
return 0;
}
arr == &arr[0]
배열의 이름 == 배열의 첫번째원소의 주소
arr+1 == &arr[1]
*arr == arr[0]
*(arr+1) == arr[1]
#include <stdio.h>
void f(int* arr) //학원
{
printf("%d",arr[1]);
}
int main () //도윤이네집
{
int arr[100000]={10,20,30};
f(arr);
}
*/
/*#include <stdio.h>
#include <string.h>
void rec(char* str,int a,int b)
{
int v=0;
for(int j=a; v<b; j++){
printf("%c",str[j]);
v++;
}
}
int main ()
{
char str[101]={};
int a,b;
gets(str);
scanf("%d %d",&a,&b);
rec(str,a,b);
return 0;
}*/



