
stl
文章平均质量分 59
hpuzsk
这个作者很懒,什么都没留下…
展开
-
牛客网24点运算
题目描述计算24点是一种扑克牌益智游戏,随机抽出4张扑克牌,通过加(+),减(-),乘(*),除(/)四种运算法则计算得到整数24,本问题中,扑克牌通过如下字符或者字符串表示,其中,小写joker表示小王,大写JOKER表示大王:345678910JQKA2jokerJOKER本程序要求实现:输入4张牌,输出一个算式,算式的结果为24点。详细说明:1.运算只考虑加减乘除运算,没有阶乘等特殊运算符号,友情提醒,整数除...原创 2020-07-13 16:11:16 · 832 阅读 · 0 评论 -
STL之修改集合里边元素的顺序
这里我们使用rotate函数。具体函数作用可见代码输出。//#include "learn.h"#include<stdio.h>#include<iostream>#include<vector>#include<map>#include<list>#include<string>#include&a原创 2018-11-28 17:06:16 · 553 阅读 · 0 评论 -
C++读取Json生成随机名字
/* * Read.cpp * * Created on: 2018年8月17日 * Author: admin */#include<string.h>#include<json/json.h>#include<stdlib.h>#include<iostream>#include<fstream>#...原创 2018-08-17 15:34:15 · 760 阅读 · 0 评论 -
bzoj2761 [JLOI2011]不重复数字
2761: [JLOI2011]不重复数字Time Limit: 10 Sec Memory Limit: 128 MBSubmit: 3081 Solved: 1138[Submit][Status][Discuss]Description给出N个数,要求把其中重复的去掉,只保留第一次出现的数。例如,给出的数为1 2 18 3 3 19 2 3 6 5 4,其中2原创 2015-12-27 16:38:02 · 678 阅读 · 0 评论 -
杭电5256 序列变换(LIS)
序列变换Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1048 Accepted Submission(s): 402Problem Description我们有一个数列A1,A2...An,你现在要原创 2015-12-06 17:13:32 · 398 阅读 · 0 评论 -
杭电1590 Bridging signals
Bridging signalsTime Limit: 5000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1340 Accepted Submission(s): 871Problem Description'Oh no, th原创 2016-01-15 17:00:18 · 446 阅读 · 0 评论 -
bz 1029: [JSOI2007]建筑抢修
1029: [JSOI2007]建筑抢修Time Limit: 4 Sec Memory Limit: 162 MBSubmit: 3104 Solved: 1392[Submit][Status][Discuss]Description小刚在玩JSOI提供的一个称之为“建筑抢修”的电脑游戏:经过了一场激烈的战斗,T部落消灭了所有z部落的入侵者。但是T部落的基地里已经有原创 2015-12-11 23:38:57 · 1246 阅读 · 0 评论 -
杭电1434 幸福列车
幸福列车Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 131070/65535 K (Java/Others)Total Submission(s): 1903 Accepted Submission(s): 577Problem Description一批幸福的列车即将从杭州驶向幸福的终点原创 2015-11-25 12:58:19 · 496 阅读 · 0 评论 -
杭电5532 Almost Sorted Array
upper_bound原创 2015-12-08 22:00:38 · 531 阅读 · 0 评论 -
杭电1075 What Are You Talking About
What Are You Talking AboutTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 102400/204800 K (Java/Others)Total Submission(s): 17882 Accepted Submission(s): 5823Problem Descriptio原创 2015-11-13 22:07:55 · 831 阅读 · 0 评论 -
杭电1716排列2 stl
排列2Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5870 Accepted Submission(s): 2249Problem DescriptionRay又对数字的列产生了兴趣:现有四张卡原创 2015-09-21 18:37:27 · 623 阅读 · 0 评论 -
杭电1027Ignatius and the Princess II
Ignatius and the Princess IITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5870 Accepted Submission(s): 3463Problem Description原创 2015-09-21 12:39:46 · 418 阅读 · 0 评论 -
杭电1702ACboy needs your help again!
Problem DescriptionACboy was kidnapped!! he miss his mother very much and is very scare now.You can't image how dark the room he was put into is, so poor :(.As a smart ACMer, you want to get A原创 2015-08-06 15:06:11 · 709 阅读 · 0 评论 -
杭电2112HDU Today(map 最短路径)
HDU TodayTime Limit: 15000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 19572 Accepted Submission(s): 4595Problem Description经过锦囊相助,海东集团终于度原创 2015-08-18 09:20:15 · 762 阅读 · 0 评论