No. 1039
#include <stdio.h>
int main()
{
long long int a, b;
scanf("%lld %lld", &a, &b);
printf("%lld", a + b);
return 0;
}
No. 1040
#include <stdio.h>
int main()
{
int a, b;
scanf("%d", &a);
printf("%d",-a);
return 0;
}
No. 1041
#include <stdio.h>
int main()
{
char a, b;
scanf("%c", &a);
printf("%c", a + 1);
return 0;
}
No. 1042
#include <stdio.h>
int main()
{
int a, b;
scanf("%d%d", &a,&b);
printf("%d", a/b);
return 0;
}
No. 1043
#include <stdio.h>
int main (void)
{
int i,j;
scanf("%d%d",&i,&j);
printf("%d",i%j);
return 0;
}
No. 1044
#include <stdio.h>
int main (void)
{
long long int i;
scanf("%lld",&i);
printf("%lld",++i);
return 0;
}
No. 1045
#include <stdio.h>
int main(void)
{
long long int a, b;
scanf("%lld%lld", &a, &b);
printf("%lld\n", a + b);
printf("%lld\n", a - b);
printf("%lld\n", a*b);
printf("%lld\n", a / b);
printf("%lld\n", a%b);
printf("%.2f\n", (float)a /(float) b);
return 0;
}
No. 1046
#include <stdio.h>
int main(void)
{
long long int a, b, c;
scanf("%lld%lld%lld", &a, &b, &c);
printf("%lld\n", a + b + c);
printf("%.1f",((float)a +(float) b +(float) c) / 3.0);
return 0;
}
'Nefus' 카테고리의 다른 글
Codeup 1356 , 1358, 1359, 1360, 1380 문제 풀이 (0) | 2020.07.01 |
---|---|
Codeup 1049 ~ 1077 문제풀이 (0) | 2020.06.27 |
Codeup 1038 : [기초-산술연산] 정수 2개 입력받아 합 출력하기1 (0) | 2020.06.25 |
Codeup 1037 : [기초-출력변환] 정수 입력받아 아스키 문자로 출력하기 (0) | 2020.06.25 |
Codeup 1036 : [기초-출력변환] 영문자 1개 입력받아 10진수로 출력하기 (0) | 2020.06.25 |