摘要: Sixth Grade MathTime Limit:1000MSMemory Limit:65535KBSubmissions:162Accepted:120DescriptionIn sixth grade, students are presented with different ways to calculate the Least Common Multiple (LCM) and the Greatest Common Factor (GCF) of two integers. The LCM of two integers a and b is the smallest pos 阅读全文
posted @ 2013-11-17 21:34 修-夏- 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 判断回文Time Limit:1000MSMemory Limit:65535KBSubmissions:1422Accepted:709Description一个字符串将其所有字符倒过来后和原来一样就称它是回文。如121是回文,abA不是回文。 你的任务就是对于输入的字符串判断是否是回文。Input第一行:测试数据组数N(1=接下来N行: 每行一个字符串(只有数字和字母(区分大小写),且字符串大小小于100).Output输出只有一行,即是否是回文。是输出“YES”,不是输出“NO”;Sample Input3A1BB1A545421564448... 阅读全文
posted @ 2013-11-17 20:39 修-夏- 阅读(443) 评论(0) 推荐(0) 编辑