摘要:
Problem Description In Diagon Alley ,there is only one Wand-seller,peeling gold letters over the door read Ollivanders: Makers ... 阅读全文
posted @ 2022-09-20 22:57
老程序员111
阅读(13)
评论(0)
推荐(0)
摘要:
【概述】 ACM 中,数据结构是必不可少的一部分,对于一些逻辑简单但测试数据较大的区间查询、区间修改、单点查询、单点修改的题目,用朴素算法会导致内存超限或时间超时,因此数据结构应灵活掌握。 【算法】 线性表:点击这里栈:点击这里队列:点击这里STL... 阅读全文
posted @ 2022-09-20 22:57
老程序员111
阅读(7)
评论(0)
推荐(0)
摘要:
【题目描述】 小希拿到了一个很长的两行的字符矩阵,她想知道里面有多少个子矩阵的字符取出后通过某种排列可以构成一个回文串。 该字符矩阵内仅含有数字0-9。 【输入描述】 第一行输入一个整数N,表示字符矩阵的长度为N。 随后两行,每行N个字符,表示字符... 阅读全文
posted @ 2022-09-20 22:57
老程序员111
阅读(12)
评论(0)
推荐(0)
摘要:
【概述】 在某些题目中,需要对字符串进行处理,不需要很复杂的算法,只需要按照题意进行模拟或暴力枚举即可得出答案。 【例题】 1.简单模拟 Minimum Ternary String(CF-1009B):点击这里Delete from the Left(CF-... 阅读全文
posted @ 2022-09-20 22:57
老程序员111
阅读(16)
评论(0)
推荐(0)
摘要:
Problem Description As we all know, machine scheduling is a very classical problem in computer science and has been studied for... 阅读全文
posted @ 2022-09-20 22:57
老程序员111
阅读(23)
评论(0)
推荐(0)
摘要:
Problem Description In the second year of the university somebody started a study on the romantic relations between the student... 阅读全文
posted @ 2022-09-20 22:57
老程序员111
阅读(11)
评论(0)
推荐(0)
摘要:
Problem Description You are to write a program that tries to find an optimal coloring for a given graph. Colors are applied to ... 阅读全文
posted @ 2022-09-20 22:57
老程序员111
阅读(28)
评论(0)
推荐(0)
摘要:
【题目描述】 求a|(a+1)|(a+2)|...|(b-1)|b。 其中|表示按位或 【输入描述】 多组输入,每行两个数表示a和b 【输出描述】 对于每组输入,输出一个数a|(a+1)|(a+2)|...|(b-1)|b。 【样例】 示例... 阅读全文
posted @ 2022-09-20 22:57
老程序员111
阅读(23)
评论(0)
推荐(0)
摘要:
【概述】 栈(Stack)是一种特殊的线性表,只能在某一端插入和删除的特殊线性表。它按照后进先出的原则存储数据,先进入的数据被压入栈底,最后的数据在栈顶。 由于栈满足先进后出,后进先出的性质,因此也被称为先进后出表(FILO)或后进先出表(LIFO) 当栈中元... 阅读全文
posted @ 2022-09-20 22:57
老程序员111
阅读(248)
评论(0)
推荐(0)
摘要:
Problem Description A rook is a piece used in the game of chess which is played on a board of square grids. A rook can only mov... 阅读全文
posted @ 2022-09-20 22:57
老程序员111
阅读(84)
评论(0)
推荐(0)

浙公网安备 33010602011771号