์ƒˆ์†Œ์‹

๐Ÿงฎ PS

์ฝ”๋“œ์—… (Code up) 1028 ~ 1046 [ C ์–ธ์–ด ํ’€์ด ]

  • -

๋ฌธ์ œ๋งํฌ : codeup.kr/problemsetsol.php?psid=23

 

๋ฌธ์ œ์ง‘ / ๊ธฐ์ดˆ 100์ œ

 

codeup.kr

 

 

1028
#include <stdio.h>

int main()
{
    unsigned long long int num;
    scanf("%llu", &num);
    printf("%llu", num);

}

 

1029
#include <stdio.h>

int main()
{
    long double num;
    scanf("%Lf", &num);
    printf("%.11Lf", num);

}

 

1030
#include <stdio.h>

int main()
{
    long long int num;
    scanf("%lld", &num);
    printf("%lld", num);

}

 

1031
#include <stdio.h>

int main()
{
    int num;
    scanf("%d", &num);
    printf("%o", num);
}

 

1032
#include <stdio.h>

int main()
{
    int num;
    scanf("%d", &num);
    printf("%x", num);
}

 

1033
#include <stdio.h>

int main()
{
    int num;
    scanf("%d", &num);
    printf("%X", num);
}

 

1034
#include <stdio.h>

int main()
{
    char ox;
    scanf("%o", &ox);
    printf("%d", ox);
}

 

1035

 

#include <stdio.h>

int main()
{
    int num;
    scanf("%x", &num);
    printf("%o", num);
}

 

 

1036
#include <stdio.h>

int main()
{
    char num;
    scanf("%c", &num);
    printf("%d", num);
}

 

 

1037
#include <stdio.h>
int main(){
	int num;
    scanf("%d", &num);
    printf("%c", num);
}

 

 

1038
#include <stdio.h>
int main(){
	long int num1, num2;
    scanf("%ld %ld", &num1, &num2);
    printf("%ld", num1 + num2);
}

 

1039
#include <stdio.h>
int main(){
	long long int num1, num2;
    scanf("%lld %lld", &num1, &num2);
    printf("%lld", num1 + num2);
}

 

1040
#include <stdio.h>
int main(){
	int num;
    scanf("%d", &num);
    printf("%d", -num);
}

 

1041
#include <stdio.h>
int main(){
	char c;
    scanf("%c", &c);
    printf("%c", c+1);
}

 

1042
#include <stdio.h>
int main(){
	int num1, num2;
    scanf("%d %d", &num1, &num2);
    printf("%d", num1/num2);
}

 

 

1043
#include <stdio.h>
int main(){
	int num1, num2;
    scanf("%d %d", &num1, &num2);
    printf("%d", num1%num2);
}

 

 

1044
#include <stdio.h>
int main(){
	long int num;
    scanf("%ld", &num);
    printf("%ld", num +1);
}

 

1045
#include <stdio.h>
int main(){
	int num1, num2;
    scanf("%d %d", &num1, &num2);
    printf("%d\n%d\n%d\n%d\n%d\n", num1+num2, num1-num2, num1*num2, num1/num2, num1%num2);

    printf("%.2f", (float)num1/num2);
}

 

1046
#include <stdio.h>
int main(){
    long long int num1, num2, num3,sum;
    float average;
    scanf("%lld %lld %lld", &num1, &num2, &num3);
    sum = num1 + num2 + num3;
    average = (float)sum / 3;

    printf("%lld\n%.1f", sum, average);
}
Contents

ํฌ์ŠคํŒ… ์ฃผ์†Œ๋ฅผ ๋ณต์‚ฌํ–ˆ์Šต๋‹ˆ๋‹ค

์ด ๊ธ€์ด ๋„์›€์ด ๋˜์—ˆ๋‹ค๋ฉด ๊ณต๊ฐ ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค.