题解 | #牛牛的通勤#
牛牛的通勤
https://www.nowcoder.com/practice/1fe33d534843473eb086c4b42655e13d
#include <stdio.h> int main() { unsigned int n = 0; while (~scanf("%u", &n)) { printf("%c\n", ((n / 10 + 10) > n ) ? 'w' : 'v'); } return 0; }
牛牛的通勤
https://www.nowcoder.com/practice/1fe33d534843473eb086c4b42655e13d
#include <stdio.h> int main() { unsigned int n = 0; while (~scanf("%u", &n)) { printf("%c\n", ((n / 10 + 10) > n ) ? 'w' : 'v'); } return 0; }
相关推荐