题解 | #汽水瓶#
汽水瓶
http://www.nowcoder.com/practice/fe298c55694f4ed39e256170ff2c205f
#include <stdio.h> int main(void) { int b,c,n; while(scanf("%d",&n)!=EOF){ b=n; if(b>=2){ c=b/2; printf("%d\n",c); } else{ printf("\n"); } } }
汽水瓶
http://www.nowcoder.com/practice/fe298c55694f4ed39e256170ff2c205f
#include <stdio.h> int main(void) { int b,c,n; while(scanf("%d",&n)!=EOF){ b=n; if(b>=2){ c=b/2; printf("%d\n",c); } else{ printf("\n"); } } }
相关推荐