20250506 baekjoon

This commit is contained in:
notalentprogrammer 2025-05-06 22:00:09 +09:00
parent 7eef0bfb32
commit f00b19f981
18 changed files with 96 additions and 0 deletions

12
Baekjoon/c/1001.c Executable file
View File

@ -0,0 +1,12 @@
#include <stdio.h>
int main() {
int a, b;
scanf("%d %d",&a, &b);
printf("%d",a-b);
return 0;
}

9
Baekjoon/c/1008.c Executable file
View File

@ -0,0 +1,9 @@
#include <stdio.h>
int main() {
int a, b;
scanf("%d %d",&a, &b);
printf("%.9f",(double)a/b);
return 0;
}

8
Baekjoon/c/10430.c Executable file
View File

@ -0,0 +1,8 @@
#include <stdio.h>
int main() {
int a, b, c;
scanf("%d %d %d",&a, &b, &c);
printf("%d %d %d %d",(a+b)%c,((a%c)+(b%c))%c,(a*b)%c,((a%c)*(b%c))%c);
return 0;
}

8
Baekjoon/c/10869.c Executable file
View File

@ -0,0 +1,8 @@
#include <stdio.h>
int main() {
int a, b;
scanf("%d %d",&a,&b);
printf("%d %d %d %d %d",a+b,a-b,a*b,a/b,a%b);
return 0;
}

8
Baekjoon/c/10926.c Executable file
View File

@ -0,0 +1,8 @@
#include <stdio.h>
int main() {
char a[50];
scanf("%s",a);
printf("%s??\!",a);
return 0;
}

12
Baekjoon/c/10998.c Executable file
View File

@ -0,0 +1,12 @@
#include <stdio.h>
int main() {
int a, b;
scanf("%d %d",&a, &b);
printf("%d",a*b);
return 0;
}

8
Baekjoon/c/11382.c Executable file
View File

@ -0,0 +1,8 @@
#include <stdio.h>
int main() {
long int a, b, c;
scanf("%ld %ld %ld",&a, &b, &c);
printf("%ld",a+b+c);
return 0;
}

8
Baekjoon/c/18108.c Executable file
View File

@ -0,0 +1,8 @@
#include <stdio.h>
int main() {
int a;
scanf("%d",&a);
printf("%d",a-543);
return 0;
}

8
Baekjoon/c/2588.c Executable file
View File

@ -0,0 +1,8 @@
#include <stdio.h>
int main() {
int a, b;
scanf("%d %d",&a, &b);
printf("%d %d %d %d",a*(b%10),a*(((b%100)-(b%10)))/10,a*(b-(b%100))/100,a*b);
return 0;
}

2
Baekjoon/python/1001.py Executable file
View File

@ -0,0 +1,2 @@
a, b = map(int, input().split())
print(a-b)

2
Baekjoon/python/1008.py Executable file
View File

@ -0,0 +1,2 @@
a, b = map(int, input().split())
print(a/b)

2
Baekjoon/python/10430.py Executable file
View File

@ -0,0 +1,2 @@
a, b, c = map(int,input().split())
print((a+b)%c,((a%c)+(b%c))%c,(a*b)%c,((a%c)*(b%c))%c)

2
Baekjoon/python/10869.py Executable file
View File

@ -0,0 +1,2 @@
a, b = map(int, input().split())
print(a+b,a-b,a*b,a//b,a%b)

1
Baekjoon/python/10926.py Executable file
View File

@ -0,0 +1 @@
print(input()+"??!")

2
Baekjoon/python/10998.py Executable file
View File

@ -0,0 +1,2 @@
a, b = map(int, input().split())
print(a*b)

1
Baekjoon/python/11382.py Executable file
View File

@ -0,0 +1 @@
print(sum(map(int,input().split())))

1
Baekjoon/python/18108.py Executable file
View File

@ -0,0 +1 @@
print(int(input())-543)

2
Baekjoon/python/2588.py Executable file
View File

@ -0,0 +1,2 @@
a, b = int(input()), input()
print(*[a*int(i) for i in b][::-1], a*int(b))