有$n$堆石子,每堆石子初始有$a_i$个,且附带一个参数$k_i$。每次可以从一堆石子(假设是第$i$堆,当前剩$x_i$个石子)中取出$1\sim\lfloor\frac{x_i}{k_i}\rfloor$个石子,判断谁必胜。 ...
分类:
其他好文 时间:
2021-05-24 03:25:51
阅读次数:
0
PAT (Advanced Level) Practice 1061 Dating (20 分) 凌宸1642 题目描述: Sherlock Holmes received a note with some strange strings: Let's date! 3485djDkxh4hhGE 2 ...
分类:
其他好文 时间:
2021-04-10 13:28:08
阅读次数:
0
题目链接 https://codeforces.com/contest/1506/problem/A 原题 1506A - Strange Table Example input 5 1 1 1 2 2 3 3 5 11 100 100 7312 1000000 1000000 1000000000 ...
分类:
其他好文 时间:
2021-03-29 11:53:53
阅读次数:
0
They were the last people you'd expect to be involved in anything strange or mysterious,because they just didn't hold with such nonsense. He was a big ...
分类:
其他好文 时间:
2021-02-17 14:55:28
阅读次数:
0
[2020-CCPC Changchun Onsite]-F. Strange Memory(dsu on tree) 题面: 题意: 给定一个含有$\mathit n$个节点的数,求下式的值。 \[ \sum\limits_{i=1}^n\sum\limits_{j=i+1}^n [a_i \op ...
分类:
其他好文 时间:
2020-11-10 10:56:31
阅读次数:
7
如果已经知道结果串t,考虑s能不能得到t,可以做一个贪心“匹配”。知道这个贪心的策略后,考虑本题要计算所有t的数量,那么可以DP。设dp[i]表示有多少t能贪心匹配到s的前i位。转移时考虑t的下一位是1还是0即可。 ...
分类:
其他好文 时间:
2020-07-26 00:28:26
阅读次数:
111
CF1380F链接 常见套路(?) 首先,假设是静态。 约定“第 \(i\) 位”是从高到低的。如 $95731$ 的第 $2$ 位是 $5$。 推一推方程: \(dp_i = dp_{i-1} \times v_1 + dp_{i-2} \times v_2\) 具体地说,设 \(t_i\) 是第 ...
分类:
其他好文 时间:
2020-07-15 15:50:52
阅读次数:
105
| break | case | catch | continue | do | | delete | default | false | finally | for | |fuction | function| if | in | inscanceof | | new | null | retur ...
分类:
编程语言 时间:
2020-07-07 13:32:07
阅读次数:
112
题目一: 该块输入一个标量信号,将信号加倍,然后输出到一个 scope进行显示。 function [sys,x0,str,ts] = timestwo(t,x,u,flag) % Dispatch the flag. The switch function controls the calls t ...
分类:
其他好文 时间:
2020-07-03 17:55:05
阅读次数:
81
不积跬步无以至千里,不积小流无以成江海!每天一点点,以达到积少成多之效! word2vec 概念,数学原理理解 1.数据集 Kaggle上的电影影评数据,包括unlabeledTrainData.tsv,labeledTrainData.tsv,testData.tsv三个文件 Strange th ...
分类:
其他好文 时间:
2020-06-24 23:51:31
阅读次数:
72