汽水瓶(简单解)

package oj.test;

import java.util.Scanner;

public class Demo12 {


 public static void main(String[] args) {
  Scanner sc = new Scanner(System.in);
  while(sc.hasNext()){
   int i = sc.nextInt();
   if(i==1)
    break;
   
    sop(i/2);
  }
 }


 private static void sop(Object obj) {
  System.out.println(obj);
 }
 

}

你可能感兴趣的:(华为OJ平台)