03 2017 档案
摘要:给出两个字符串A B,求A与B的最长公共子序列(子序列不要求是连续的)。 比如两个串为: abcicba abdkscab ab是两个串的子序列,abc也是,abca也是,其中abca是这两个字符串最长的子序列。 给出两个字符串A B,求A与B的最长公共子序列(子序列不要求是连续的)。 比如两个串为
阅读全文
摘要:Restaurant Time Limit:4000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Submit Status Restaurant Submit Status Description A restaurant recei
阅读全文
摘要:OR in Matrix Time Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Submit Status OR in Matrix Submit Status Description Let's define l
阅读全文
摘要:Apple Tree Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status Apple Tree Submit Status Description There is an apple t
阅读全文
摘要:C. Jeff and Rounding time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Jeff got 2n real num
阅读全文
摘要:tmk买礼物 Description 今天是校赛的日子,为了庆祝这么喜庆的日子,TMK打算买些礼物给女票LSH庆祝一下。 TMK进入了雪梨超市,然后刚踏入的一瞬间,店主就对TMK说:“恭喜你成为了本店第2147483647位顾客,本店在搞一个活动,对本店第2147483647位顾客进行赠送活动。你先
阅读全文
摘要:找到单链表倒数第n个节点,保证链表中节点的最少数量为n。 样例 给出链表 3->2->1->5->null和n = 2,返回倒数第二个节点的值1. /** * Definition of ListNode * class ListNode { * public: * int val; * ListN
阅读全文
摘要:给定一个排序链表,删除所有重复的元素每个元素只留下一个。 样例 给出 1->1->2->null,返回 1->2->null 给出 1->1->2->3->3->null,返回 1->2->3->null /** * Definition of ListNode * class ListNode {
阅读全文
摘要:给定一个链表,删除链表中倒数第n个节点,返回链表的头节点。 样例 给出链表1->2->3->4->5->null和 n = 2. 删除倒数第二个节点之后,这个链表将变成1->2->3->5->null. /** * Definition of ListNode * class ListNode {
阅读全文
摘要:给一个链表,两两交换其中的节点,然后返回交换后的链表。 给一个链表,两两交换其中的节点,然后返回交换后的链表。 给一个链表,两两交换其中的节点,然后返回交换后的链表。 样例 给出 1->2->3->4, 你应该返回的链表是 2->1->4->3。 /** * Definition for singl
阅读全文
摘要:Tunnel Warfare Time Limit:2000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Tunnel Warfare Submit Status Description During the
阅读全文
摘要:样例 样例 样例 给出链表 1->2->3->3->4->5->3, 和 val = 3, 你需要返回删除3之后的链表:1->2->4->5。 /** * Definition for singly-linked list. * struct ListNode { * int val; * List
阅读全文
摘要:Minimum Inversion Number Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Description The inversion number of a give
阅读全文
摘要:Mayor's posters Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status Description The citizens of Bytetown, AB, could not
阅读全文
摘要:Count the Colors Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %llu Submit Status Description Painting some colored segments on a line
阅读全文
摘要:Resort Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Submit Status Practice CodeForces 350B Resort Submit Status Practice Code
阅读全文
摘要:Can you answer these queries? Time Limit:2000MS Memory Limit:65768KB 64bit IO Format:%I64d & %I64u Submit Status Can you answer these queries? Submit
阅读全文
摘要:Description Description Bessie is such a hard-working cow. In fact, she is so focused on maximizing her productivity that she decides to schedule her
阅读全文
摘要:C - Mafia Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Submit Status C - Mafia Submit Status Description One day n friends ga
阅读全文
摘要:Color the Fence Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Submit Status Description Igor has fallen in love with Tanya. No
阅读全文
摘要:Matrix Time Limit:3000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status Matrix Submit Status Description Given an N*N matrix A, whos
阅读全文
摘要:Phalanx Time Limit:5000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Practice HDU 2859 Phalanx Submit Status Practice HDU 2859 D
阅读全文
摘要:Treats for the Cows Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status Practice POJ 3186 Treats for the Cows Submit St
阅读全文
摘要:Very Simple Problem Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status Practice POJ 2535 Very Simple Problem Submit St
阅读全文
摘要:Alice and Bob Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Submit Status Alice and Bob Submit Status Description It is so bor
阅读全文
摘要:FatMouse and Cheese Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status FatMouse and Cheese Submit Status Description F
阅读全文
摘要:Tickets Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Tickets Submit Status Description Jesus, what a great movie
阅读全文
摘要:Piggy-Bank Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Piggy-Bank Submit Status Description Before ACM can do a
阅读全文
摘要:Doing Homework Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Doing Homework Submit Status Description Ignatius ha
阅读全文
摘要:B - Ignatius and the Princess IV Time Limit:1000MS Memory Limit:32767KB 64bit IO Format:%I64d & %I64u Submit Status B - Ignatius and the Princess IV S
阅读全文
摘要:A - Max Sum Plus Plus Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status A - Max Sum Plus Plus Submit Status Descripti
阅读全文
摘要:Color the Ball Problem Description There are infinite balls in a line (numbered 1 2 3 ....), and initially all of them are paint black. Now Jim use a
阅读全文
摘要:LCIS Problem Description Given n integers.You have two operations:U A B: replace the Ath number by B. (index counting from 0)Q A B: output the length
阅读全文
摘要:Luck and Love Problem Description 世界上上最远的距离不是相隔天涯海角而是我在你面前可你却不知道我爱你 ―― 张小娴前段日子,枫冰叶子给Wiskey做了个征婚启事,聘礼达到500万哦,天哪,可是天文数字了啊,不知多少MM蜂拥而至,顿时万人空巷,连扫地的大妈都来凑热闹来
阅读全文
摘要:C. Andryusha and Colored Balloons time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Andryu
阅读全文
摘要:B. The Meeting Place Cannot Be Changed time limit per test 5 seconds memory limit per test 256 megabytes input standard input output standard output T
阅读全文
摘要:Matrix Again Problem Description Starvae very like play a number game in the n*n Matrix. A positive integer number is put in each area of the Matrix.E
阅读全文
摘要:寒假结束后没觉得自己假期学的怎么样,一直在刷知识点,直到今天晚上给自己限时两个小时打了一场CF401,结果惨不忍睹, 一个寒假状态下滑的自己都害怕,更可怕的是自己还以为寒假学的很好。通过今晚的比赛发现很多缺点,自己缺少大一菜鸟的一种优 点,就是敢暴力,现在的自己好像是大病初愈的球员,打的畏首畏尾,就
阅读全文
摘要:B. Game of Credit Cards time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output After the fourth
阅读全文
摘要:Special Fish Problem Description There is a kind of special fish in the East Lake where is closed to campus of Wuhan University. It’s hard to say whic
阅读全文
摘要:Increasing Speed Limits Problem Description You were driving along a highway when you got caught by the road police for speeding. It turns out that th
阅读全文
摘要:方格取数(2) Problem Description 给你一个m*n的格子的棋盘,每个格子里面有一个非负数。从中取出若干个数,使得任意的两个数所在的格子没有公共边,就是说所取数所在的2个格子不能相邻,并且取出的数的和最大。 Input 包括多个测试实例,每个测试实例包括2整数m,n和m*n个非负数
阅读全文