摘要:
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 阅读全文
摘要:
判断回文Time Limit:1000MSMemory Limit:65535KBSubmissions:1422Accepted:709Description一个字符串将其所有字符倒过来后和原来一样就称它是回文。如121是回文,abA不是回文。 你的任务就是对于输入的字符串判断是否是回文。Input第一行:测试数据组数N(1=接下来N行: 每行一个字符串(只有数字和字母(区分大小写),且字符串大小小于100).Output输出只有一行,即是否是回文。是输出“YES”,不是输出“NO”;Sample Input3A1BB1A545421564448... 阅读全文