【PAT】B1058 选择题(20 分)】的更多相关文章

批改多选题是比较麻烦的事情,本题就请你写个程序帮助老师批改多选题,并且指出哪道题错的人最多. 输入格式: 输入在第一行给出两个正整数N(<=1000)和M(<=100),分别是学生人数和多选题的个数.随后M行,每行顺次给出一道题的满分值(不超过5的正整数).选项个数(不少于2且不超过5的正整数).正确选项个数(不超过选项个数的正整数).所有正确选项.注意每题的选项从小写英文字母a开始顺次排列.各项间以1个空格分隔.最后N行,每行给出一个学生的答题情况,其每题答案格式为“(选中的选项个数 选项1…
批改多选题是比较麻烦的事情,本题就请你写个程序帮助老师批改多选题,并且指出哪道题错的人最多. 输入格式: 输入在第一行给出两个正整数 N(≤ 1000)和 M(≤ 100),分别是学生人数和多选题的个数.随后 M 行,每行顺次给出一道题的满分值(不超过 5 的正整数).选项个数(不少于 2 且不超过 5 的正整数).正确选项个数(不超过选项个数的正整数).所有正确选项.注意每题的选项从小写英文字母 a 开始顺次排列.各项间以 1 个空格分隔.最后 N 行,每行给出一个学生的答题情况,其每题答案格…
1074 宇宙无敌加法器 (20 分) 地球人习惯使用十进制数,并且默认一个数字的每一位都是十进制的.而在 PAT 星人开挂的世界里,每个数字的每一位都是不同进制的,这种神奇的数字称为“PAT数”.每个 PAT 星人都必须熟记各位数字的进制表,例如“……0527”就表示最低位是 7 进制数.第 2 位是 2 进制数.第 3 位是 5 进制数.第 4 位是 10 进制数,等等.每一位的进制 d 或者是 0(表示十进制).或者是 [2,9] 区间内的整数.理论上这个进制表应该包含无穷多位数字,但从实…
1035 Password (20 分) To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some confusing passwords since it is hard to distinguish 1 (one) from l (L in lowercase), or 0 (zero) fr…
1058 选择题(20 分) 批改多选题是比较麻烦的事情,本题就请你写个程序帮助老师批改多选题,并且指出哪道题错的人最多. 输入格式: 输入在第一行给出两个正整数 N(≤ 1000)和 M(≤ 100),分别是学生人数和多选题的个数.随后 M 行,每行顺次给出一道题的满分值(不超过 5 的正整数).选项个数(不少于 2 且不超过 5 的正整数).正确选项个数(不超过选项个数的正整数).所有正确选项.注意每题的选项从小写英文字母 a 开始顺次排列.各项间以 1 个空格分隔.最后 N 行,每行给出一…
1035 Password(20 分) To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some confusing passwords since it is hard to distinguish 1 (one) from l (L in lowercase), or 0 (zero) fro…
1124 Raffle for Weibo Followers(20 分) John got a full mark on PAT. He was so happy that he decided to hold a raffle(抽奖) for his followers on Weibo -- that is, he would select winners from every N followers who forwarded his post, and give away gifts.…
1035 Password (20 分)   To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some confusing passwords since it is hard to distinguish 1 (one) from l (L in lowercase), or 0 (zero)…
题目链接:1018 锤子剪刀布 分析 用一个二维数组保存两人所有回合的手势 甲乙的胜,平,负的次数刚好相反,用3个变量表示就可以 手势单独保存在signs[3]中,注意顺序.题目原文:如果解不唯一,则输出按字母序最小的解. 注意input()中的getchar()不能省略 C /** * Score 20 * Run Time 25ms * @author wowpH * @version 4.2 */ #include<stdio.h> #include<stdlib.h> in…
PAT (Advanced Level) Practice 1046 Shortest Distance (20 分) 凌宸1642 题目描述: The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the shortest distance between any pair of exits. 译:你的任务很简单:给定 N 个出口,形成…