摘要:
题目传送门: "SP1043 GSS1 Can you answer these queries I" "更好的阅读体验" 动态维护子段和最大值 前置知识 静态维护子段和最大值 : "SP1043 GSS1 Can you answer these queries I" "题解传送" 题解: 提供结 阅读全文
摘要:
矩阵乘法基础模板: "P3390 【模板】矩阵快速幂" 在矩阵快速幂中,正对角线为$1$,其他为$0$的矩阵为单位矩阵。 利用单位矩阵进行快速幂。 code: cpp include include include using namespace std; typedef long long LL; 阅读全文
摘要:
Problem C Problem Description Tarzan 非常烦数轴因为数轴上的题总是难度非常大。不过他非常喜欢线段,因为有关线 段的题总是不难,讽刺的是在一个数轴上有 n 个线段,Tarzan 希望自己喜欢的东西和讨厌的 东西不在一起,所以他要把这些线段分多次带走,每一次带走一组, 阅读全文
摘要:
题目描述 B数的定义:能被13整除且本身包含字符串"13"的数。 例如:130和2613是B数,但是143和2639不是B数。 你的任务是计算1到n之间有多少个数是B数。 输入 输入数据只有一个数,为n。($1 include using namespace std; typedef long lo 阅读全文
摘要:
Problem Description The counter terrorists found a time bomb in the dust. But this time the terrorists improve on the time bomb. The number sequence o 阅读全文