摘要:
A. Stickers and Toys 考虑尽量先买$max(s, t)$个里面单独的。那么如果$s + t n$那么$s + t n$的部分就该把$min(s, t)$踢出来,这些多的只能合并到另外一个上面去,所以答案就是:$ max(s, t) (s + t n) + 1$。 B. Lette 阅读全文
摘要:
A. From Hero to Zero 通过取余快速运行第一步即可。由于$a \% b (a = b) include using namespace std; typedef long long LL; int main(){ int T; scanf("%d", &T); while(T ){ 阅读全文