#include <stdio.h>
#include <stdlib.h>
/*int main()
{
int *pi;
int k;
pi = &k;
scanf("%d", &k);
printf("directly access :> %d\n", k);
printf("using point access :> %d\n", *pi); // pi, *pi
}*/
/*
int main()
{
int a,b,c=0,k,i;
int *pi1;
int *pi2;
scanf("%d %d", &a,&b);
pi1= &a;
pi2= &b;
for(i=a; i<=b; i++)
{
k=i;
if(k/2==1)
{
c=c+k;
}
else
{
c=c-k;
}
}
printf("%d", c);
}
*/
/*
#include<stdio.h>
int main() {
int a, b, i, s=0;
int *pa, *pb, *pi, *ps;
pa = &a;
pb = &b;
pi = &i;
ps = &s;
scanf("%d %d", &a, &b);
for(*pi=*pa; *pi<=*pb; (*pi)++) {
if(*pi%2==0) {
*ps -= *pi;
}
else {
*ps += *pi;
}
}
printf("%d", *ps);
}
*/
/*
int main()
{
int a, b, i, s=0;
int *pa, *pb, *pi, *ps;
pa = &a;
pb = &b;
pi = &i;
ps = &s;
scanf("%d %d", &a, &b);
for(*pi=*pa; *pi<=*pb; (*pi)++)
{
if(*pi==*pa)
{
if(*pi%2==0)
{
*ps -= *pi;
printf("-%d", *pi);
}
else
{
*ps += *pi;
printf("%d", *pi);
}
}
else
{
if(*pi%2==0)
{
*ps -= *pi;
printf("-%d", *pi);
}
else
{
*ps += *pi;
printf("+%d", *pi);
}
}
}
if(*ps>0)
{
printf("=+%d", *ps);
}
else
{
printf("=%d", *ps);
}
}
*/
/*
#include<stdio.h>
int main() {
int **ppi;
int *pi;
int k;
ppi = π
pi = &k;
*pi = 20;
printf("%d", **ppi);
}
*/
/*
#include<stdio.h>
#include<malloc.h>
int main() {
int *pa;
char *pc;
int i, n;
int arr[100];
// n개의 배열을 선언해서 각각을 더하는 프로그램
//scanf("%d", &n);
/*
pc = (char*) malloc(sizeof(char)*(n+3));
pa = (int*) malloc(sizeof(int)*n);
for(i=0; i<n; i++) {
scanf("%d", &pa[i]);
}
for(i=0; i<n; i++) {
printf("%d ", pa[i]);
}
for(int i=0; i<5; i++) {
scanf("%d", &n);
pc = (char*) malloc(sizeof(char)*n);
scanf("%s", pc);
printf("pa length is %d\n", strlen(pc));
printf("before result %s\n", pc);
free(pc);
printf("after result %s\n", pc);
}
//free(pa);
}
*/
/*
#include<stdio.h>
#include<malloc.h>
int main()
{
char *pa;
int i;
pa = (char*) malloc(sizeof(char)*(100));
scanf("%s", pa);
if(pa[0]=='l'&&pa[1]=='o'&&pa[2]=='v'&&pa[3]=='e'&&strlen(pa)==4)
{
printf("I love you.");
}
}
*/
/*
#include <stdio.h>
#include <malloc.h>
#include <string.h>
#include <math.h>
int main() {
int **pi;
int n;
int i, j;
scanf("%d", &n);
pi = (int**) malloc(sizeof(int) *n);
for(i=0; i<n; i++) {
pi[i] = (int*) malloc(sizeof(int) *n);
}
for(i=0; i<n; i++) {
for(j=0; j<n; j++) {
pi[i][j] = i*j;
}
}
for(i=0; i<n; i++) {
for(j=0; j<n; j++) {
printf("%d ", pi[i][j]);
}
printf("\n");
}
}
#include <stdio.h>
#include <malloc.h>
#include <string.h>
#include <math.h>
int main()
{
int **pi;
int n;
int i, j;
scanf("%d", &n);
pi = (int**) malloc(sizeof(int) *n);
for(i=0; i<n; i++)
{
pi[i] = (int*) malloc(sizeof(int) *n);
}
for(i=0; i<n; i++)
{
scanf("%d", &pi[i][0]);
}
for(i=1; i<n; i++)
{
for(j=1; j<n; j++)
{
pi[i][j] = pi[i][j-1] - pi[i-1][j-1];
}
}
for(i=0; i<n; i++) {
for(j=0; j<=i; j++) {
printf("%d ", pi[i][j]);
}
printf("\n");
}
}
*/
/*
#include <stdio.h>
#include <malloc.h>
#include <string.h>
#include <math.h>
int main()
{
int n;
int i,j,p, x, y, k=1;
int pi[105][105];
scanf("%d", &n);
/*
pi = (int**) malloc(sizeof(int) *n*2);
for(i=0; i<n; i++)
{
pi[i] = (int*) malloc(sizeof(int) *n*2);
}
x=0;
y=n/2;
pi[x][y] = k++;
for(p=0; p<n*n-1; p++)
{
x--;
y++;
if(x<0)
{
x=n-1;
}
if(y>=n)
{
y=0;
}
pi[x][y]=k++;
if((k-1)%n==0)
{
x++;
pi[x][y]=k++;
p++;
}
}
for(i=0; i<n; i++)
{
for(j=0; j<n; j++)
{
printf("%d ", pi[i][j]);
}
printf("\n");
}
}
#include<stdio.h>
struct student {
char name[100];
int grade;
int age;
char phone[100];
};
int main() {
struct student ke[100];
ke[0].grade = 1;
}
#include<stdio.h>
struct student
{
char name[100];
int kor;
int math;
int eng;
};
int main()
{
struct student ke[100];
int i;
for(i=0; i<5; i++)
{
scanf("%s", ke[i].name);
scanf("%d", &ke[i].kor);
scanf("%d", &ke[i].math);
scanf("%d", &ke[i].eng);
}
for(i=0; i<5; i++)
{
printf("%s ", ke[i].name);
printf("%d ", ke[i].kor);
printf("%d ", ke[i].math);
printf("%d\n", ke[i].eng);
}
}
#include<stdio.h>
int main() {
FILE *fp, *output;
int a[100], b=0, i;
fp = fopen("inside.txt", "r+");
output = fopen("outside.txt", "w+");
//fscanf(fp, "%d %d", &a, &b);
//fprintf(output, "%d", a+b);
for(i=0; i<10; i++){
fscanf(fp, "%d", &a[i]);
b=b+a[i];
}
fprintf(output, "%d", b);
}*/
/*
#include<stdio.h>
int main()
{
FILE *fp, *output;
int a[100], b=0, i;
char input;
fp = fopen("inside.txt", "r+");
output = fopen("outside.txt", "w+");
for(i=0; feof(fp)==NULL ; i++)
{
fscanf(fp, "%c", &input);
if(input>='a' && input<='z')
{
input=input-32;
}
else if(input>='A' && input<='Z')
{
input=input+32;
}
fprintf(output, "%c", input);
}
}
*/
#include <stdio.h>
#define K 100
int main() {
printf("line numbers %d", __LINE__);
}