Angesthan
Angesthan
全部文章
分类
c++模板(10)
java(11)
python(1)
未归档(1)
练习题(6)
题解(10)
归档
标签
去牛客网
登录
/
注册
Angesthan的博客
全部文章
(共38篇)
hdu-6281 Sorting
转化一下就好啦,交叉相乘相互约掉一些相同的计算。 #include<iostream> #include <cstdio> #include <cstring> #include <algorithm> #include <cmath> #...
2020-02-07
0
398
F - Hamster Farm
题意:有n个hamsters,k种箱子,每种箱子可以装不同数量的hamsters,求买哪种箱子几个可以尽可能的装完n个hamsters,可以剩下但是箱子必须装满思路:直接暴力寻找余数最小的箱子 #include <cstring> #include <algorithm> #...
2020-02-07
0
402
BNUZ套题比赛div2 E - A Prosperous Lot
其实这道题就是 看数字有几个圈,比如0 4 6 9 有一个圈 8 有两个圈,输出结果不能超过10^18也就是不能有超过36个圈 #include <cstdio> #include <cstring> #include <algorithm> #include ...
2020-02-07
0
349
Codeforces - 934A A Compatible Pair(暴力)
题意:Banban将会从Tommy的序列中取走一个数,和自己序列的一个数组成乘积最大。但是Tommy希望Banban最终组成的数尽可能小,而且它将会提前从自己序列中取走一个数以此来达到目的。思路:题目有点绕,其实Tommy一开始希望结果尽可能小这句话我读到了,但是没能理解,解题时也没想到。一开始没想...
2020-02-07
0
464
F
Right now she actually isn't. But she will be, if you don't solve this problem.You are given integers n, k, A and B. There is a number x, which is ini...
2020-02-07
0
389
A
Fafa owns a company that works on huge projects. There are n employees in Fafa's company. Whenever the company has a new project to start working on, ...
2020-02-07
0
483
C - Fifa and Fafa
Fifa and Fafa are sharing a flat. Fifa loves video games and wants to download a new soccer game. Unfortunately, Fafa heavily uses the internet which ...
2020-02-07
0
380
vector初始化以及遍历
#include<iostream> #include<cstdio> #include<vector> #include<set> #include<map> #include<stack> #include<queue...
2020-02-07
0
316
机器翻译(queue)
题目背景 小晨的电脑上安装了一个机器翻译软件,他经常用这个软件来翻译英语文章。 题目描述 这个翻译软件的原理很简单,它只是从头到尾,依次将每个英文单词用对应的中文含义来替换。对于每个英文单词,软件会先在内存中查找这个单词的中文含义,如果内存中有,软件就会用它进行翻译;如果内存中没有,软件就会在外存中...
2020-02-07
0
490
快速排序
#include<iostream> using namespace std; int n,a[1000001]; void qsort(int l,int r)//应用二分思想 { int mid=a[(l+r)/2];//中间数 int i=l,j=r; do...
2020-02-07
0
463
首页
上一页
1
2
3
4
下一页
末页