题解 | #汽水瓶#
汽水瓶
http://www.nowcoder.com/practice/fe298c55694f4ed39e256170ff2c205f
import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
StringBuffer sb = new StringBuffer();
while(true){
int empty = sc.nextInt();
if(empty<1 || empty >100 ) break;
sb.append(empty / 2);
sb.append("\n");
}
System.out.print(sb);
}
}