Angesthan
Angesthan
全部文章
题解
c++模板(10)
java(11)
python(1)
未归档(1)
练习题(6)
归档
标签
去牛客网
登录
/
注册
Angesthan的博客
全部文章
/ 题解
(共10篇)
口算训练
#include<iostream> #include<algorithm> #include<cstdio> #include<cstring> #include<queue> #include<vector> using n...
2020-03-03
0
436
单词方阵
思路:此题显然是搜索,而且自带方向,我们只需从他所要求的单词的第一个字母开始。先找到‘y’,从‘y’向周围8个方向搜索,如果某个方向满足条件,就依这个方向往下搜索,直到把所有的字母找完。 #include <bits/stdc++.h> using namespace std; ch...
2020-02-14
0
493
八皇后
#include <cstdio> #include <cstring> #include <algorithm> #include <vector> #include <math.h> #include <string.h> ...
2020-02-14
0
352
protect cheep
Bob is a farmer. He has a large pasture with many sheep. Recently, he has lost some of them due to wolf attacks. He thus decided to place some shepher...
2020-02-07
0
517
Three Friends
Three friends are going to meet each other. Initially, the first friend stays at the positionx=ax=a, the second friend stays at the positionx=bx=band ...
2020-02-07
0
455
Mahmoud and Ehab and the even-odd game
Mahmoud and Ehab play a game called the even-odd game. Ehab chooses his favorite integer n and then they take turns, starting from Mahmoud. In each pl...
2020-02-07
0
432
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