Forces

【LGR-170-Div.3】洛谷基础赛 #6 & Cfz Round 3 & Caféforces #2

这套题感觉质量很高 A.Battle \[x \equiv r(\bmod P) \]\[P \mid x - r \]因此只有第一次操作是有效的 void solve() { int n, m, p; cin >> n >> m >> p; m -= m % p; if(!m) puts("Ali ......
amp 基础 forces Round LGR

TheForces Round #24 (DIV3-Forces)11.1

TheForces Round #24 (DIV3-Forces) A - Banis and Cards 思路:不大于n的m的倍数的和 #include<bits/stdc++.h> using namespace std; #define int long long //#define int ......
DIV3-Forces TheForces Forces Round 11.1

TheForces Round #13 (Boombastic-Forces) G. Permutation Removal

感觉好久没有写过这样单独一篇题目的博客了的说 昨天上大物课的时候ztc问了我这道题,然后我口胡了下感觉还挺有趣的 不过其它题目就没啥时间看了,正巧最近在练DP专题,就顺手记录一下吧 这题的数据范围和问题一眼区间DP的形式,直接设$f_{l,r}$表示区间$[l,r]$的答案 刚开始naive地认为直 ......
共3篇  :1/1页 首页上一页1下一页尾页