题解 | #牛牛的判断题#
牛牛的判断题
https://www.nowcoder.com/practice/51a046c13b3c4b64a07d69903a3cd4cf
public class Program { public static void Main() { string line; while ((line = System.Console.ReadLine ()) != null) { // 注意 while 处理多个 case string[] tokens = line.Split(); int x = int.Parse(tokens[0]); int l = int.Parse(tokens[1]); int r = int.Parse(tokens[2]); if(x>=l&&x<=r) System.Console.WriteLine("true"); else System.Console.WriteLine("false"); } } }