摘要:
The Travelling Salesman spends a lot of time travelling so he tends to get bored. To pass time, he likes to perform operations on numbers. One such op 阅读全文
摘要:
现在有一个字符串,你需要用ai的钱去掉这个字符串的第i个位置的字符。现在要使得该字符串中不包含子序列hard。求最小钱数输入第一行一个整数n表示字符串的长度(1<=n<=100000)。 第二行一个给定的字符串。 第三行n个整数a1,a2,a3,...,an(1<=ai<=998244353)。输出 阅读全文
摘要:
D. Aerodynamic time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Guy-Manuel and Thomas are 阅读全文