水题
SadSummerHoliday
这个作者很懒,什么都没留下…
展开
-
C. Sonya and Robots
C. Sonya and Robotstime limit per testcf1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputSince Sonya is interested in robotics too, she decided to construct robots tha...原创 2018-07-09 20:08:27 · 208 阅读 · 0 评论 -
CF B. Sonya and Exhibition
A. Sonya and Hotels题目网址点击打开链接time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputSonya decided that having her own hotel business is the best way of ea...原创 2018-07-09 19:07:08 · 176 阅读 · 0 评论 -
Codeforces D. Sonya and Matrix 数学题(矩阵)
D. Sonya and Matrixtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputSince Sonya has just learned the basics of matrices, she decided to play with t...原创 2018-07-09 20:50:30 · 604 阅读 · 0 评论 -
Pineapple Incident(水题)
A. Pineapple IncidentTed has a pineapple. This pineapple is able to bark like a bulldog! At time t (in seconds) it barks for the first time. Then every s ...原创 2018-08-04 14:12:28 · 240 阅读 · 0 评论 -
hdu6433 pow(大数运算)
Problem H. Pow Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 524288/524288 K (Java/Others) Sub...原创 2018-08-23 09:47:46 · 475 阅读 · 0 评论 -
uva 11078 open credit system(思维题)
链接:https://vjudge.net/problem/UVA-11078题意:找出前面的数最多能比后面的数大多少(可为负数)。维护前面的最大值,然后挨个过维护最大值和最大ans值。#include<iostream>#include<stdio.h>using namespace std;int main(){ int n,r[1000...原创 2018-08-23 20:01:36 · 180 阅读 · 0 评论 -
hdu 1001
题意极其简单,但是有一种被玩的感觉,因为好久不做题了,WA了几次,才知道结果是32-bit但是中间过程却不一定,要用longlong保证一下#include<iostream>#include<stdio.h>#include<algorithm>#include<map>#include<string.h>#includ...原创 2018-10-20 21:25:43 · 160 阅读 · 0 评论 -
hdu1003(大数运算)
计算两个大数求和,一般使用int数组存储,变量cnt记录长度,这里为了方便使用了string来简化。#include<iostream>#include<algorithm>#include<stdio.h>#include<cstring>using namespace std;string a,b;int ans[1005];...原创 2018-10-20 22:07:31 · 265 阅读 · 0 评论 -
hdu1004(字符串统计)
统计出现次数最多的字符串。不太会使用map的方法,就用string数组来记录了所有出现的颜色,然后逐一比较。要记住每次使用前都要清空map。#include<iostream>#include<algorithm>#include<stdio.h>#include<cstring>#include<map>usin...原创 2018-10-20 22:44:17 · 227 阅读 · 0 评论