![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
水题有坑
梦忆晴天
下水道里的鼠人
展开
-
Hamster Farm
仓鼠农场 - CodeForces 939B - 虚拟法官 (csgrandeur.cn)以后初始化无穷再也不inf=0x3f3f3f3fl了,具体要看题目给的数据范围#include<bits/stdc++.h>#define x first#define int long long#define gcfx main#define y second#define mak make_pair#define IOS ios::sync_with_stdio(false),原创 2022-05-27 10:52:46 · 215 阅读 · 0 评论 -
AvtoBus(思维)
AvtoBus - CodeForces 1679A - 虚拟判断仪 (csgrandeur.cn)思路:4*x+6*y=n;故2*x+3*y=n/2,1≤x≤y,故n一定能被2整除,且n>=4x=n/4,y=n/6,原创 2022-05-19 22:37:05 · 292 阅读 · 0 评论 -
Infinite Replacement (思维)
无限替换 - CodeForces 1674C - 虚拟裁判 (csgrandeur.cn)题意:给你a串和b串,a串中每一个字符'a'可以换成b串(也可以不用换),问可以通过更换得到多少个不同的a串,如果可以得到无数个a串输出-1没有注意到可以不用换的条件,wa了一次code#include<bits/stdc++.h>#define x first#define y second#define mak make_pair#define IOS ios::sync_w原创 2022-05-13 14:50:04 · 356 阅读 · 0 评论