题目解析
给定三个数以及一个字符串
让你判断三个数 输出指定字符串
解题思路
输入输出
代码
import java.io.*;
import java.util.*;
public class Main
{
public static void main(String[] args)
{
int n = sc.nextInt();
String x = sc.next();
int m = sc.nextInt();
int k = sc.nextInt();
if(k == n)
out.printf("mei you mai %s de", x);
else if(k == m)
out.printf("kan dao le mai %s de", x);
else
out.printf("wang le zhao mai %s de", x);
out.flush();
out.close();
}
static Scanner sc = new Scanner(System.in);
static PrintWriter out = new PrintWriter(System.out);
}