摘要:
问题 G: Give Candies 题目描述 There are N children in kindergarten. Miss Li bought them N candies。To make the process more interesting, Miss Li comes up wit 阅读全文
摘要:
问题 F: 路 题目描述 Farmer John 热衷于散步,每天早上他都要从 1 号仓库走到 n 号仓库。 Farmer John 家的 n 个仓库被 m 条双向道路连通起来,每条道路有一个长度 w。而Farmer John 又不喜欢走路,所以他走的是从 1 号仓库到 n 号仓库的最短路。但是 F 阅读全文
摘要:
#include #include using namespace std; typedef long long ll; const ll mod = 1610612741; const int base = 17; const int maxn = 1e6+10; char s[maxn]; ll ha[maxn]; int len; ll ans; inline ll qpow(int ... 阅读全文