【C】#牛牛的快递#
牛牛的快递
https://www.nowcoder.com/practice/41b42e7b3c3547e3acf8e90c41d98270
#include <stdio.h> int main() { float a; char b; scanf("%f %c", &a, &b); if (a <= 1 && b == 'y') printf("%d", 25); else if (a <= 1 && b == 'n') printf("%d", 20); else if (a > 1 && b == 'y') printf("%d", (int)(a - 1 + 0.9) + 25); else if (a > 1 && b == 'n') printf("%d", (int)(a - 1 + 0.9) + 20); return 0; }