250303
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
int a, b;
|
||||
scanf("%d %d", &a, &b);
|
||||
printf("%d", a + b);
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
int a, b;
|
||||
scanf("%d %d", &a, &b);
|
||||
printf("%d", b / a + 1);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
float r;
|
||||
scanf("%f", &r);
|
||||
printf("%.2f\n", 3.14 * r * r);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
int a, b;
|
||||
scanf("%d %d", &a, &b);
|
||||
printf("%.2f\n", (float)a / b);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
int n;
|
||||
scanf("%d", &n);
|
||||
printf("%d", n * 10);
|
||||
return 0;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user