This commit is contained in:
2025-03-03 19:11:28 +08:00
parent 9b502ee90c
commit 87611d8794
10 changed files with 73 additions and 9 deletions
+8
View File
@@ -0,0 +1,8 @@
#include <stdio.h>
int main() {
int a, b;
scanf("%d %d", &a, &b);
printf("%d", a + b);
return 0;
}
+7
View File
@@ -0,0 +1,7 @@
#include <stdio.h>
int main() {
int a, b;
scanf("%d %d", &a, &b);
printf("%d", b / a + 1);
}
+7
View File
@@ -0,0 +1,7 @@
#include <stdio.h>
int main() {
float r;
scanf("%f", &r);
printf("%.2f\n", 3.14 * r * r);
}
+7
View File
@@ -0,0 +1,7 @@
#include <stdio.h>
int main() {
int a, b;
scanf("%d %d", &a, &b);
printf("%.2f\n", (float)a / b);
}
+8
View File
@@ -0,0 +1,8 @@
#include <stdio.h>
int main() {
int n;
scanf("%d", &n);
printf("%d", n * 10);
return 0;
}
+8
View File
@@ -0,0 +1,8 @@
#include <stdio.h>
int main() {
int n, m;
scanf("%d %d", &n, &m);
printf("%d", n % m == 0 ? n / m : n / m + 1);
return 0;
}
+9
View File
@@ -0,0 +1,9 @@
#include <stdio.h>
int main() {
char num[] = {getchar(), getchar(), getchar()};
putchar(num[2]);
putchar(num[1]);
putchar(num[0]);
return 0;
}
+8
View File
@@ -0,0 +1,8 @@
#include <stdio.h>
int main() {
int a, b;
scanf("%d %d", &a, &b);
printf("%d\n", a * b);
return 0;
}