摘要: A - Marks 链接:https://codeforces.com/problemset/problem/152/A 题意: 有n个学生共m门科目,给出每个学生每门成绩; 如果没有学生在这门课上得到更高的分数,则这个学生在某门课上表现最好; 如果有一个学科是他最擅长的,则这个个学生是成功的;求成 阅读全文
posted @ 2021-05-24 10:59 nanmoon 阅读(30) 评论(0) 推荐(0) 编辑
摘要: B - Phone Numbers 链接:https://codeforces.com/problemset/problem/151/B 题意: 从形如“XX-XX-XX”由数字构成的电话号码中寻找分别拥有每种类型的电话号码的最大数量的朋友, 出租车号码由6个相同的数字组成(例如,22-22-22) 阅读全文
posted @ 2021-05-22 16:40 nanmoon 阅读(32) 评论(0) 推荐(0) 编辑
摘要: A - A CodeForces - 991A Each student eagerly awaits the day he would pass the exams successfully. Thus, Vasya was ready to celebrate, but, alas, he di 阅读全文
posted @ 2021-02-07 14:09 nanmoon 阅读(99) 评论(0) 推荐(0) 编辑
摘要: A - A CodeForces - 994A You are locked in a room with a door that has a keypad with 10 keys corresponding to digits from 0 to 9. To escape from the ro 阅读全文
posted @ 2021-02-07 13:47 nanmoon 阅读(59) 评论(0) 推荐(0) 编辑
摘要: A - A CodeForces - 879A It seems that Borya is seriously sick. He is going visit n doctors to find out the exact diagnosis. Each of the doctors needs 阅读全文
posted @ 2021-01-25 21:10 nanmoon 阅读(70) 评论(0) 推荐(0) 编辑
摘要: B - Lucky Mask Petya loves lucky numbers very much. Everybody knows that lucky numbers are positive integers whose decimal record contains only the lu 阅读全文
posted @ 2020-12-20 22:02 nanmoon 阅读(110) 评论(0) 推荐(0) 编辑
摘要: C - Trains Vasya the programmer lives in the middle of the Programming subway branch. He has two girlfriends: Dasha and Masha, who live at the differe 阅读全文
posted @ 2020-12-05 20:33 nanmoon 阅读(66) 评论(0) 推荐(0) 编辑
摘要: L1-6 吃火锅 (15分) 以上图片来自微信朋友圈:这种天气你有什么破事打电话给我基本没用。但是如果你说“吃火锅”,那就厉害了,我们的故事就开始了。 本题要求你实现一个程序,自动检查你朋友给你发来的信息里有没有 chi1 huo3 guo1。 输入格式: 输入每行给出一句不超过 80 个字符的、以 阅读全文
posted @ 2020-12-05 20:09 nanmoon 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 7-4 倒数第N个字符串 (15分) 给定一个完全由小写英文字母组成的字符串等差递增序列,该序列中的每个字符串的长度固定为 L,从 L 个 a 开始,以 1 为步长递增。例如当 L 为 3 时,序列为 { aaa, aab, aac, ..., aaz, aba, abb, ..., abz, .. 阅读全文
posted @ 2020-11-23 20:20 nanmoon 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 7-11 集合相似度 (25分) 给定两个整数集合,它们的相似度定义为:/。其中N​c​​是两个集合都有的不相等整数的个数,N​t​​是两个集合一共有的不相等整数的个数。你的任务就是计算任意一对给定集合的相似度。 输入格式: 输入第一行给出一个正整数N(≤),是集合的个数。随后N行,每行对应一个集合 阅读全文
posted @ 2020-11-22 20:37 nanmoon 阅读(76) 评论(0) 推荐(0) 编辑