题解 | #小乐乐排电梯#
小乐乐排电梯
https://www.nowcoder.com/practice/0f855c7642b74cccb3c2366bb7732d2a
#include <stdio.h> int main() { int n, up, down, time; up = 2;//上下楼的时间 down = 2; scanf("%d", &n); time = n / 12 * (up + down) + up; printf("%d\n", time); return 0; }
C语言基础 文章被收录于专栏
里面较为详细的介绍了c语言的相关用法和有关题目。