mirror of
https://github.com/renbaoshuo/202401-programming-assignments.git
synced 2024-11-23 15:48:42 +00:00
Compare commits
No commits in common. "62aa46db3be6ddd5497877edcbf545ff93f3e21b" and "1e0c23a743109f07dce3e0bade1127e6d7248cda" have entirely different histories.
62aa46db3b
...
1e0c23a743
@ -1,11 +0,0 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
int f;
|
||||
|
||||
scanf("%d", &f);
|
||||
|
||||
printf("Celsius = %d\n", 5 * (f - 32) / 9);
|
||||
|
||||
return 0;
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 259 KiB |
@ -1,18 +0,0 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int x;
|
||||
|
||||
int main() {
|
||||
scanf("%d", &x);
|
||||
|
||||
int res = 0;
|
||||
|
||||
while (x) {
|
||||
res = (res * 10) + (x % 10);
|
||||
x /= 10;
|
||||
}
|
||||
|
||||
printf("%d\n", res);
|
||||
|
||||
return 0;
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 269 KiB |
@ -1,11 +0,0 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
int y, m, d;
|
||||
|
||||
scanf("%2d-%2d-%4d", &m, &d, &y);
|
||||
|
||||
printf("%04d-%02d-%02d\n", y, m, d);
|
||||
|
||||
return 0;
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 303 KiB |
@ -1,11 +0,0 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int a, t, b;
|
||||
|
||||
int main() {
|
||||
scanf("%d%d%d", &a, &t, &b);
|
||||
|
||||
printf("%d", 1ll * t * (b - 1) / (a - 1));
|
||||
|
||||
return 0;
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 296 KiB |
Loading…
Reference in New Issue
Block a user