import java.util.Scanner;
public class algorithm {
public static void main(String[] args) {
algorithm a=new algorithm();
Scanner s=new Scanner(System.in);
int q=s.nextInt();
while(q!=0) {
switch (q) {
case 1:
a.method1();
break;
case 2:
a.method2();
break;
case 3:
a.method3();
break;
case 4:
a.method4();
break;
case 5:
a.method5();
break;
case 6
关于我用Java答洛谷看似很简单的编程题
![](https://img-home.csdnimg.cn/images/20240711042549.png)