参考代码:
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int s = scanner.nextInt(); String res; if(s / 3 + 50 < s / 1.2) res = "Bike"; else if(s / 3 + 50 > s / 1.2) res = "Walk"; else res = "All"; System.out.print(res); } }
0.0分
5 人评分