摘要:
B. Prinzessin der Verurteilung 链接 B. Prinzessin der Verurteilung 直接暴力枚举所有情况,可以发现最多最多枚举到3个字符就可以通过 #include <iostream> #include <algorithm> #include <cs 阅读全文
摘要:
B. Maximum Product 链接 B. Maximum Product 这个题因为只取5个数字,所以我们直接枚举5个数字的全部情况取出最大值就可以了 #include <iostream> #include <algorithm> #include <cstdio> #include <c 阅读全文
摘要:
B. Pleasant Pairs 链接 B. Pleasant Pairs 我们通过控制i来枚举ai*t-j的方法来确定有多少个满足条件的结果.用一个res来记录最后有多少满足条件的结果就可以了 #include <iostream> #include <algorithm> #include < 阅读全文
摘要:
B. Before an Exam 链接 B. Before an Exam 这个题使用贪心的方法先将总时间按每个时间点最小的分配如果不够就打印no如果够了就从第一个时间点分配到最大值,直到sum为0,这样就是yes的情况,如果全部都分配给最大值的话最后的sum还有剩余的话,打印no #includ 阅读全文