题解 | #小乐乐排电梯#
小乐乐排电梯
https://www.nowcoder.com/practice/0f855c7642b74cccb3c2366bb7732d2a
#include <stdio.h> int main() { int n, m; scanf("%d", &n); m = (n + 1) / 12;// if ((n + 1) % 12 > 0)// printf("%d", 4 * m + 2); else if (m == 1) printf("2"); else printf("%d", 4 * m + 2); return 0; }