11 2020 档案

摘要:7-4 倒数第N个字符串 (15分) 给定一个完全由小写英文字母组成的字符串等差递增序列,该序列中的每个字符串的长度固定为 L,从 L 个 a 开始,以 1 为步长递增。例如当 L 为 3 时,序列为 { aaa, aab, aac, ..., aaz, aba, abb, ..., abz, .. 阅读全文
posted @ 2020-11-23 20:20 nanmoon 阅读(106) 评论(0) 推荐(0)
摘要:7-11 集合相似度 (25分) 给定两个整数集合,它们的相似度定义为:/。其中N​c​​是两个集合都有的不相等整数的个数,N​t​​是两个集合一共有的不相等整数的个数。你的任务就是计算任意一对给定集合的相似度。 输入格式: 输入第一行给出一个正整数N(≤),是集合的个数。随后N行,每行对应一个集合 阅读全文
posted @ 2020-11-22 20:37 nanmoon 阅读(82) 评论(0) 推荐(0)
摘要:7-1 阅览室 (20分) 天梯图书阅览室请你编写一个简单的图书借阅统计程序。当读者借书时,管理员输入书号并按下S键,程序开始计时;当读者还书时,管理员输入书号并按下E键,程序结束计时。书号为不超过1000的正整数。当管理员将0作为书号输入时,表示一天工作结束,你的程序应输出当天的读者借书次数和平均 阅读全文
posted @ 2020-11-15 21:54 nanmoon 阅读(102) 评论(0) 推荐(0)
摘要:B Long time ago Alex created an interesting problem about parallelogram. The input data for this problem contained four integer points on the Cartesia 阅读全文
posted @ 2020-11-08 20:25 nanmoon 阅读(150) 评论(0) 推荐(0)
摘要:E Nothing is eternal in the world, Kostya understood it on the 7-th of January when he saw partially dead four-color garland. Now he has a goal to rep 阅读全文
posted @ 2020-11-01 20:27 nanmoon 阅读(71) 评论(0) 推荐(0)