随笔分类 - 数据结构/线段树/树状数组
摘要:问题如下:先给你一个含有N个整数的数组数组中的每一个元素只为1或者0而N的大小为1~100你可以删除一些元素(也可以选择不删除),使剩下的数组中,没有一个元素0在1后面出现。并且要使剩下的元素的数量最多,请输出剩下元素的数量。 思路: 没有一个元素0在1后面出现,。 那么操作后的数组只可能是这个样子
阅读全文
摘要:As you might remember from the previous round, Vova is currently playing a strategic game known as Rage of Empires. Vova managed to build a large army
阅读全文
摘要:To stay woke and attentive during classes, Karen needs some coffee! Karen, a coffee aficionado, wants to know the optimal temperature for brewing the
阅读全文
摘要:链接:https://ac.nowcoder.com/acm/contest/358/D来源:牛客网 出题人的手环 出题人的手环 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 524288K,其他语言1048576K 64bit IO Format: %lld 题目描述 出题人的妹
阅读全文

浙公网安备 33010602011771号