题解 | #小乐乐是否被叫家长#
小乐乐是否被叫家长
http://www.nowcoder.com/practice/cc896ffd90d34c7faa318b04e87adf11
#include <stdio.h> int main() { int x = 0,n; for(int i = 0;i<3;++i) { scanf("%d",&n); x+=n; } printf(x>=180? "NO":"YES"); return 0; }
小乐乐是否被叫家长
http://www.nowcoder.com/practice/cc896ffd90d34c7faa318b04e87adf11
#include <stdio.h> int main() { int x = 0,n; for(int i = 0;i<3;++i) { scanf("%d",&n); x+=n; } printf(x>=180? "NO":"YES"); return 0; }
相关推荐