题解 | #牛牛的通勤#
牛牛的通勤
https://www.nowcoder.com/practice/1fe33d534843473eb086c4b42655e13d
#include <stdio.h> int main() { int m = 0, w, v; scanf("%d", &m); w = m; //走路的时间 v = m/10+10; //打车的时间 if(v < m) printf("v\n"); else printf("w\n"); return 0; }
牛牛的通勤
https://www.nowcoder.com/practice/1fe33d534843473eb086c4b42655e13d
#include <stdio.h> int main() { int m = 0, w, v; scanf("%d", &m); w = m; //走路的时间 v = m/10+10; //打车的时间 if(v < m) printf("v\n"); else printf("w\n"); return 0; }
相关推荐