#include<iostream> #include<list> #include<iterator> #include<algorithm> using namespace std; list<int> p; int ii, jj; bool op(int x) /*这个很重要*/ { return x <= ii; } int main() { int n; while(cin >> n) { for(int i = 0;…
想要输出""的话: cout<<"A person whose name is \""<<name<<"\" and age is "<<age<<" is created!"<<endl; Home Web Board ProblemSet Standing Status Statistics   Problem G: 克隆人来了!…
这个题目主要是乘法运算符的重载,卡了我好久,矩阵的乘法用3个嵌套的for循环进行,要分清楚矩阵的乘法结果是第一个矩阵的行,第二个矩阵的列所组成的矩阵. 重载+,*运算符时,可以在参数列表中传两个矩阵引用,分别表示前后进行运算的矩阵,或者是只传运算符之后的矩阵引用,前一个矩阵用的是隐含的this指针指向的矩阵.我用的是后者. Home Web Board ProblemSet Standing Status Statistics   Problem G: 强悍的矩阵运算来了 Problem G:…
Problem G: Check The Check Time Limit: 1 Sec  Memory Limit: 64 MBSubmit: 10  Solved: 3[Submit][Status][Web Board] Description Your task is to write a program that reads a chessboard configuration and identifies whether a king is under attack (in chec…
Problem G Good Teacher I want to be a good teacher, so at least I need to remember all the student names. However, there are too many students, so I failed. It is a shame, so I don't want my students to know this. Whenever I need to call someone, I c…
Problem G Time Limit : 4000/2000ms (Java/Other)   Memory Limit : 32768/32768K (Java/Other) Total Submission(s) : 16   Accepted Submission(s) : 5 Font: Times New Roman | Verdana | Georgia Font Size: ← → Problem Description There are Y lines parallel t…
Problem G: If We Were a Child AgainTime Limit: 1 Sec Memory Limit: 128 MBSubmit: 18 Solved: 14[Submit][Status][Web Board]DescriptionThe Problem The first project for the poor student was to make a calculator that can just perform the basic arithmetic…
Problem G: Keywords SearchTime Limit: 1 Sec Memory Limit: 128 MBSubmit: 10 Solved: 6[Submit][Status][Web Board] [Edit] [TestData]Descriptionn the modern time, Search engine came into the life of everybody like Google, Baidu, etc.Wiskey also wants to…
Problem I: STL--多重集的插入和删除 Time Limit: 1 Sec  Memory Limit: 128 MBSubmit: 1729  Solved: 1258[Submit][Status][Web Board] Description 给你一个集合,一开始集合是空集,然后进行若干操作,最后你要从小到大输出集合中的元素,以空格隔开.(集合中可能会有相同元素) Input 一共有若干输入数据,开头一个n(n<=20),n=0代表输入结束. 然后有n行,每行有2种形式: &quo…
欢迎访问~原文出处——博客园-zhouzhendong 去博客园看该题解 题目传送门 - BZOJ4977 - 八月月赛 Problem G 题意 小明组建了一支由n名玩家组成的战队,编号依次为1到n.每局游戏开始时,所有玩家都会从飞机上跳伞,选择一个目的地降落.他们发现地面上一共有m间房子,编号依次为1到m.每间房子有一名敌人.第i名玩家有ai发子弹,第i间房子里的敌人有bi发子弹,消灭他可以获得ci点积分.每名玩家必须且只能选择一间房子降落.若第i名玩家选择了第j间房子,如果ai>bj,他就…