mirror of
https://github.com/renbaoshuo/202401-programming-assignments.git
synced 2024-11-23 15:48:42 +00:00
19 lines
236 B
C
19 lines
236 B
C
#include <stdio.h>
|
|
|
|
int main() {
|
|
int n;
|
|
|
|
scanf("%d", &n);
|
|
|
|
int ans1 = n * 7;
|
|
int ans2 = 15 + n * 5;
|
|
|
|
if (ans1 < ans2) {
|
|
printf("%d\n", ans1);
|
|
} else {
|
|
printf("%d\n", ans2);
|
|
}
|
|
|
|
return 0;
|
|
}
|