题目介绍 题目链接 https://pintia.cn/problem-sets/994805342720868352/problems/994805498207911936 题目考点 队列和模拟,重难点在于模拟而非队列 题目难度 PAT甲级30分 题目大意 有N个窗口,每个窗口最多允许M个人站在黄 ...
分类:
其他好文 时间:
2021-01-29 12:06:55
阅读次数:
0
A:http://codeforces.com/contest/1475/problem/A 题意: 判断n是否有>1的奇数因子 解析: 不断比2即可。 #include<iostream> #include<algorithm> #include<cstdio> #include<cstring> ...
分类:
其他好文 时间:
2021-01-28 12:21:27
阅读次数:
0
每行的元素从左到右升序排列;每列的元素从上到下升序排列。找target是否在矩阵中 方法一:感觉跟问题I没啥区别啊! func searchMatrix(g [][]int, tar int) bool { n, m := len(g), len(g[0]) i, j := 0, m-1 for ; ...
分类:
其他好文 时间:
2021-01-28 12:14:07
阅读次数:
0
链接 : https://codeforces.com/contest/1475/problem/D 排序 + 双指针 #include <bits/stdc++.h> using namespace std; #define IO ios::sync_with_stdio(false);cin.t ...
分类:
其他好文 时间:
2021-01-28 12:04:58
阅读次数:
0
1. 使用八股搭建神经网络 1.1 、 用Tensorflow API: tf.keras 搭建神经网络八股 六步法: import import相关模块,比如 import tensorflow as tf train, test 告知要喂入网络的训练集和测试集是什么 也就是要指定训练集的输入特征 ...
分类:
其他好文 时间:
2021-01-27 13:05:18
阅读次数:
0
地址 https://vjudge.net/problem/POJ-3187 题意是给你一个N(1<=N<=10) 要求将1到N的数字进行排列 然后进行杨辉三角运算 每行的数字等于上一行相同坐标和上一行相同坐标右边的两个数字之和 最后得到唯一的一个数字 现在给予N 和一个M 请问初始的N个数字该如何 ...
分类:
其他好文 时间:
2021-01-27 13:02:49
阅读次数:
0
Integer Inquiry poj1503 题目 Problem Description One of the first users of BIT's new supercomputer was Chip Diller. He extended his exploration of power ...
分类:
其他好文 时间:
2021-01-27 13:01:44
阅读次数:
0
剑指 Offer 04. 二维数组中的查找 在一个 n * m 的二维数组中,每一行都按照从左到右递增的顺序排序,每一列都按照从上到下递增的顺序排序。请完成一个高效的函数,输入这样的一个二维数组和一个整数,判断数组中是否含有该整数。 示例: 现有矩阵 matrix 如下: [ [1, 4, 7, 1 ...
分类:
编程语言 时间:
2021-01-26 11:58:21
阅读次数:
0
今天又是快乐水题的一天,本菜鸡决定水一道贪心题,题目如下: http://www.fjutacm.com/Problem.jsp?pid=1871 Problem Description 在公元4484年,人类展开了对外界星球的征途和探索,但也不可避免的展开了和外星人之间的战争。偶然的机遇之下,美国 ...
分类:
其他好文 时间:
2021-01-25 11:31:17
阅读次数:
0
Problem LeetCode Given the root of a binary tree, return the sum of every tree node's tilt. The tilt of a tree node is the absolute difference between ...
分类:
编程语言 时间:
2021-01-25 11:29:21
阅读次数:
0