【题目链接】 :click here~~ 【题目大意】: A sequence Sn is defined as: Where a, b, n, m are positive integers.┌x┐is the ceil of x. For example, ┌3.14┐=4. You are to calculate Sn. You, a top coder, say
2024 National Invitational of CCPC (Zhengzhou) 2024CCPC郑州邀请赛暨CCPC河南省赛 2024 National Invitational of CCPC (Zhengzhou) B. 扫雷 1 题意:扫n轮雷,每轮开始获得一枚扫雷币,可保存,从第一轮开始,可以决定在任意轮进行任意次扫雷,但过去的轮数不能返回,第i轮需要花费 c i
//sort bug下标 遍历dp. //没修负的bug肯定连续 #include<bits/stdc++.h>using namespace std;#define int long long const int n=1e6+11;int a,b,c[n],dp[n]; signed main(){ios::sync_with_stdio(false);cin.tie(0),co
http://202.197.224.59/OnlineJudge2/index.php/Problem/read/id/1168 当时以为这题过的了,一直在做这题,才发现后面有两道水题, 然后时间过了很久,所以很慌张,搞的a了很久,最后搞出来了。 这题题意是alice 可以拿2^xi 个stone bob 可以拿 3^yi 个 stone , alice first ,然后
2024 i c p c 武汉站邀请赛 F . C u s t o m − M a d e C l o t h e s \Huge{2024icpc武汉站邀请赛F.Custom-Made Clothes} 2024icpc武汉站邀请赛F.Custom−MadeClothes 文章目录 题意思路标程 题目链接:F. Custom-Made Clothes 题意 本题是一
Problem Description Chika gives you an integer sequence a1,a2,…,an and m tasks. For each task, you need to answer the number of “friendly pairs” in a given interval. friendly pair: for two integers a