/*
#include <stdio.h>
int main()
{
int arr[51];
int n,i,j,sum=0,summ=0;
scanf("%d",&n);
for(i=1; i<=n-1; i++)
{
scanf("%d",&arr[i]);
sum+=arr[i];
}
for(i=1;i<=n;i++)
{
summ+=i;
}
printf("%d",summ-sum);
return 0;
}
#include <stdio.h>
int main()
{
int arr[1001];
int n,k,i,j,sum=0;
scanf("%d",&n );
for(i=1; i<=n; i++)
{
scanf("%d",&arr[i]);
}
for(i=1; i<=n; i++)
{
printf("%d: ",i);
for(j=1; j<=n; j++)
{
if(i!=j)
{
if(arr[i]<arr[j])
{
printf("< ");
}
else if(arr[i]>arr[j])
{
printf("> ");
}
else
{
printf("= ");
}
}
}
printf("\n");
}
return 0;
}
6
1 2 3 4 5
i i+1 i+2 i+3 i+4
i+1 i+2 i+3 i+4 i
i+2 i+3 i+4 i i+1
i+3 i+4 i i+1 i+2
i+4 i i+1 i+2 i+3
14+1
13+2
12+3
11+4
10+5
#include <stdio.h>
int main()
{
int arr[1001];
int n,i,j;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
scanf("%d",&arr[i]);
}
for(i=1;i<=n;i++)
{
for(j=i;j<=n;j++)
{
printf("%d ",arr[j]);
}
for(j=1;j<=i-1;j++)
{
printf("%d ",arr[j]);
}
printf("\n");
}
return 0;
}
문자열 string
#include <stdio.h>
#include <string.h>
int main()
{
char str[50];
//int i,j;
//scanf("%s",str);
gets(str);//공백 포함 문자열 입력
printf("%s",str);
printf("\n%c",str[4]);
}
#include <stdio.h>
int main()
{
char s;
scanf("%c",&s);
printf("%c",s);
}
#include <stdio.h>
#include <string.h>
int main()
{
char str[9];
scanf("%s",str);
printf("%s",str);
return 0;
}
#include <stdio.h>
#include <string.h>
int main ()
{
char str[101];
int i;
gets(str);
//for(i=0;str[i]!=NULL;i++)
for(i=0;i<strlen(str);i++)
{
if(str[i]!=' ')
{
printf("%c",str[i]);
}
}
}
#include <stdio.h>
#include <string.h>
int main()
{
char s[50];
scanf("%s",s);
if(s[0] == 'l'&& s[1] == 'o'&&s[2] == 'v'&&s[3] == 'e'&& s[4]==NULL
)
{printf("I love you.");
}
}
test
1**4
*/
#include <stdio.h>
#include <string.h>
int main()
{
char s[11];
int i,j;
scanf("%s",s);
for(i=0; i<strlen(s); i++)
{
if(s[i]=='t')
{
printf("%d ",i+1);
}
}
return 0;
}