
DFS
文章平均质量分 84
做不完的ACM
加油,努力
展开
-
2018年全国多校算法寒假训练营练习比赛(第四场)A题
链接:https://www.nowcoder.com/acm/contest/76/A来源:牛客网随着海上运输石油泄漏的问题,一个新的有利可图的行业正在诞生,那就是撇油行业。如今,在墨西哥湾漂浮的大量石油,吸引了许多商人的目光。这些商人们有一种特殊的飞机,可以一瓢略过整个海面20米乘10米这么大的长方形。(上下相邻或者左右相邻的格子,不能斜着来)当然,这要求一瓢撇过去的全部是油,如果一瓢里面有油...原创 2018-02-11 22:19:52 · 278 阅读 · 0 评论 -
牛客练习赛4反素数
链接:https://www.nowcoder.com/acm/contest/82/A来源:牛客网时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 262144K,其他语言524288K 64bit IO Format: %lld题目描述 t次询问,每次给你一个数n,求在[1,n]内约数个数最多的数的约数个数 输入描述:第一行一个正整数t 之后t行,每行一个正整数n输出描述:输出t...原创 2018-04-01 18:27:01 · 201 阅读 · 0 评论 -
CCCP_2016四省 HDU5925
#include <bits/stdc++.h> using namespace std; using ll = long long ; const int dirx[] = {0, 0, 1, -1}; const int diry[] = {1, -1, 0, 0}; const int maxn = 207; bool vis[maxn*3][maxn*3]; //离散化后是图...原创 2018-04-24 20:55:33 · 167 阅读 · 0 评论 -
Codeforces987F
题目链接:http://codeforces.com/contest/987/problem/FF. AND Graphtime limit per test4 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a set of size m with int...原创 2018-05-31 23:45:46 · 264 阅读 · 0 评论 -
Codeforces 1006F Xor-Paths
题目链接:http://codeforces.com/contest/1006/problem/F 题面: F. Xor-Paths time limit per test3 seconds memory limit per test 256 megabytes There is a rectangular grid of size n×mn×m. Each cell has a num...原创 2018-07-17 09:51:01 · 388 阅读 · 0 评论