暴力
gx翔鸽
革命尚未成功,同志任需努力,先改造自己
展开
-
积分赛 (二)51Nod - 1090
1090 3个数和为0 基准时间限制:1 秒 空间限制:131072 KB 分值: 5 难度:1级算法题 收藏 关注给出一个长度为N的无序数组,数组中的元素为整数,有正有负包括0,并互不相等。从中找出所有和 = 0的3个数的组合。如果没有这样的组合,输出No Solution。如果有多个,按照3个数中最小的数从小到大排序,如果最小的数相等则按照第二小的数排序。Input第1行,1个数N,N为数组的...原创 2018-04-17 23:27:05 · 101 阅读 · 0 评论 -
codeforces1051A——Vasya And Password【暴力,模拟】
A. Vasya And Password time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Vasya came up with a password to register for EatForces — a ...原创 2018-10-07 22:01:49 · 298 阅读 · 1 评论 -
UVA 12325—— Zombie's Treasure Chest【枚举,暴力】
Some brave warriors come to a lost village. They are very lucky and find a lot of treasures and a big treasure chest, but with angry zombies. The warriors are so brave that they decide to defeat the z...原创 2018-12-31 18:33:40 · 164 阅读 · 0 评论