摘要: https://pintia.cn/problem-sets/994805260223102976/problems/994805290334011392 一个合法的身份证号码由17位地区、日期编号和顺序编号加1位校验码组成。校验码的计算规则如下: 首先对前17位数字加权求和,权重分配为:{7,9, 阅读全文
posted @ 2018-07-03 21:22 _Zlrrr 阅读(181) 评论(0) 推荐(0)
摘要: https://pintia.cn/problem-sets/994805260223102976/problems/994805309963354112 令P~i~表示第i个素数。现任给两个正整数M <= N <= 10^4^,请输出P~M~到P~N~的所有素数。 输入格式: 输入在一行中给出M和 阅读全文
posted @ 2018-07-03 21:19 _Zlrrr 阅读(111) 评论(0) 推荐(0)
摘要: https://pintia.cn/problem-sets/994805260223102976/problems/994805318855278592 让我们用字母B来表示“百”、字母S表示“十”,用“12...n”来表示个位数字n(&lt10),换个格式来输出任一个不超过3位的正整数。例如23 阅读全文
posted @ 2018-07-03 21:18 _Zlrrr 阅读(117) 评论(0) 推荐(0)
摘要: https://pintia.cn/problem-sets/994805260223102976/problems/994805281567916032 每个PAT考生在参加考试时都会被分配两个座位号,一个是试机座位,一个是考试座位。正常情况下,考生在入场时先得到试机座位号码,入座进入试机状态后, 阅读全文
posted @ 2018-07-03 21:16 _Zlrrr 阅读(125) 评论(0) 推荐(0)
摘要: https://pintia.cn/problem-sets/994805260223102976/problems/994805314941992960 给定一句英语,要求你编写程序,将句中所有单词的顺序颠倒输出。 输入格式:测试输入包含一个测试用例,在一行内给出总长度不超过80的字符串。字符串由 阅读全文
posted @ 2018-07-03 21:14 _Zlrrr 阅读(107) 评论(0) 推荐(0)
摘要: https://pintia.cn/problem-sets/994805260223102976/problems/994805312417021952 给定区间[-2^31^, 2^31^]内的3个整数A、B和C,请判断A+B是否大于C。 输入格式: 输入第1行给出正整数T(<=10),是测试用 阅读全文
posted @ 2018-07-03 21:11 _Zlrrr 阅读(106) 评论(0) 推荐(0)
摘要: https://pintia.cn/problem-sets/994805260223102976/problems/994805321640296448 读入n名学生的姓名、学号、成绩,分别输出成绩最高和成绩最低学生的姓名和学号。 输入格式:每个测试输入包含1个测试用例,格式为\ 其中姓名和学号均 阅读全文
posted @ 2018-07-01 11:25 _Zlrrr 阅读(143) 评论(0) 推荐(0)
摘要: https://pintia.cn/problem-sets/994805260223102976/problems/994805324509200384 读入一个自然数n,计算其各位数字之和,用汉语拼音写出和的每一位数字。 输入格式:每个测试输入包含1个测试用例,即给出自然数n的值。这里保证n小于 阅读全文
posted @ 2018-07-01 11:24 _Zlrrr 阅读(150) 评论(0) 推荐(0)
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2035 Problem Description 求A^B的最后三位数表示的整数。说明:A^B的含义是“A的B次方” Input 输入数据包含多个测试实例,每个实例占一行,由两个正整数A和B组成(1<=A,B<=10 阅读全文
posted @ 2018-06-30 19:18 _Zlrrr 阅读(124) 评论(0) 推荐(0)
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2099 Problem Description 一个整数,只知道前几位,不知道末二位,被另一个整数除尽了,那么该数的末二位该是什么呢? Input 输入数据有若干组,每组数据包含二个整数a,b(0<a<10000, 阅读全文
posted @ 2018-06-30 19:15 _Zlrrr 阅读(96) 评论(0) 推荐(0)