kZjPBD.jpg
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 23 下一页
摘要: 题目背景 这是一道模板题。 题目描述 给定n个整数(数字可能重复),求在这些数中选取任意个,使得他们的异或和最大。 输入输出格式 输入格式: 第一行一个数n,表示元素个数 接下来一行n个数 输出格式: 仅一行,表示答案。 输入输出样例 输入样例#1: 复制 2 1 1 输出样例#1: 复制 1 说明 阅读全文
posted @ 2019-06-29 21:45 Through_The_Night 阅读(219) 评论(0) 推荐(0)
摘要: .A. An Olympian Math Problem Alice, a student of grade 666, is thinking about an Olympian Math problem, but she feels so despair that she cries. And h 阅读全文
posted @ 2019-06-26 19:59 Through_The_Night 阅读(860) 评论(0) 推荐(0)
摘要: B. Product 样例输入1复制 2 2 1000000007 样例输出1复制 128 样例输入2复制 233 131072 4894651 样例输出2复制 748517 样例输入3复制 1000000000 999999997 98765431 样例输出3复制 50078216 solutio 阅读全文
posted @ 2019-06-24 14:13 Through_The_Night 阅读(803) 评论(2) 推荐(0)
摘要: Description: Didi is a curious baby. One day, she finds a curious game, which named Rock Paper Scissors Lizard Spock. The game is an upgraded version 阅读全文
posted @ 2019-06-23 20:11 Through_The_Night 阅读(336) 评论(0) 推荐(0)
摘要: There are well-known formulas: , , . Also mathematicians found similar formulas for higher degrees. Find the value of the sum modulo 109 + 7 (so you s 阅读全文
posted @ 2019-06-23 16:50 Through_The_Night 阅读(271) 评论(0) 推荐(0)
摘要: Description给出两个字符串S和T定义两个等长的字符串A和B之间的距离为:每次操作可以选择两个字符c1和c2,将两个字符串中的所有c1替换为c2,这样将A和B变为相等的最小操作次数。求S的每个长度为|T|的子串和T之间的距离。n<=125000,保证S和T只含有小写字母a~f 暴力的话,每个 阅读全文
posted @ 2019-06-22 15:55 Through_The_Night 阅读(240) 评论(0) 推荐(0)
摘要: 题目描述 很久很久以前,在你刚刚学习字符串匹配的时候,有两个仅包含小写字母的字符串AAA和BBB,其中AAA串长度为mmm,BBB串长度为nnn。可当你现在再次碰到这两个串时,这两个串已经老化了,每个串都有不同程度的残缺。 你想对这两个串重新进行匹配,其中AAA为模板串,那么现在问题来了,请回答,对 阅读全文
posted @ 2019-06-22 14:53 Through_The_Night 阅读(319) 评论(0) 推荐(0)
摘要: 电灯泡 TimeLimit:1000MS MemoryLimit:128MB 64-bit integer IO format:%lld 未提交 | 登录后收藏 | 已有6人收藏了本题 Problem Description V_Dragon有n栈电灯泡,编号为1-n,每个灯泡都有一个开关。那么问题 阅读全文
posted @ 2019-06-21 20:43 Through_The_Night 阅读(298) 评论(0) 推荐(0)
摘要: Description Galen Marek, codenamed Starkiller, was a male Human apprentice of the Sith Lord Darth Vader. A powerful Force-user who lived during the er 阅读全文
posted @ 2019-06-21 20:30 Through_The_Night 阅读(171) 评论(0) 推荐(0)
摘要: Description Input 第一行包含二个整数N,M 接下来M行代表M条边,表示这个交通网络 每行六个整数,表示Ui,Vi,Ai,Bi,Ci,Di 接下来一行包含一条边,表示连接起点的边 第一行包含二个整数N,M 接下来M行代表M条边,表示这个交通网络 每行六个整数,表示Ui,Vi,Ai,B 阅读全文
posted @ 2019-06-21 15:18 Through_The_Night 阅读(172) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 23 下一页