题解 | #HJ022 汽水瓶#
汽水瓶
http://www.nowcoder.com/practice/fe298c55694f4ed39e256170ff2c205f
import java.util.Scanner;
/**
* HJ22 汽水瓶
*/
public class HJ022 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (sc.hasNextInt()) {
int bottle = sc.nextInt();
if (bottle == 0) {
break;
}
System.out.println(bottle / 2);
}
sc.close();
}
}