摘要:
A. Gardener and the Capybaras 这道题目就是想让我们输出三个字符串,然后又一个要求就是中间这个字符串具有最值(最大或最小)的字典序 这里需要注意一下,这个字符串里面只有 a , b , 那我们就先判断第一种情况最小的情况 : for(int i = 1 ; i < s.s 阅读全文
摘要:
A .牛牛去购物 这道题目纯纯数学题,一遍一遍更新最小值,我们每一次都用a * i + b * j,计算出最小的答案 ACcode #include <bits/stdc++.h> #define int long long const int N = 1000010; int a[N]; usin 阅读全文
摘要:
Lexicographical Maximum Eibwen is a newbie in Python. You might know that when you input a number in the command line, your Python program will receiv 阅读全文
摘要:
A. Strange Partition Problem - A - Codeforces 2022-12-15 14:00:52 #include <bits/stdc++.h> #define int long long const int N=100010; using namespace 阅读全文