A. Matrix Game 题目链接:https://codeforces.ml/contest/1365/problem/A 对矩阵把不可操作的行列除去,得到一个h×w的矩阵 由于每当一个人操作一次,就会占去一行一列,最多操作比较h,w得较小的数为操作次数,当为奇数Ashish赢,偶数Vivek ...
分类:
其他好文 时间:
2020-06-09 23:16:53
阅读次数:
84
地址 https://www.acwing.com/problem/content/12/ 有 N 件物品和一个容量是 V 的背包。每件物品只能使用一次。 第 i 件物品的体积是 vi,价值是 wi。 求解将哪些物品装入背包,可使这些物品的总体积不超过背包容量,且总价值最大。 输出 字典序最小的方案 ...
#include<bits/stdc++.h>#define ll long long#define speed_up ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);using namespace std;/*俄罗斯方块游戏题意:有n个数,从左 ...
分类:
其他好文 时间:
2020-06-09 20:18:52
阅读次数:
45
1021 个位数统计 (15分) #include<iostream> #include<string> #include<cstdio> using namespace std; int main(){ string s;cin>>s; int a[1005]={0}; for(int i=0;i ...
分类:
其他好文 时间:
2020-06-09 18:43:19
阅读次数:
54
Regularization Deep Learning models have so much flexibility and capacity that overfitting can be a serious problem,if the training dataset is not big ...
分类:
其他好文 时间:
2020-06-09 18:29:42
阅读次数:
53
地址:http://poj.org/problem?id=3321 题意: 树上有n个位置,初始每个位置都有苹果。以1号为总根 n-1条分叉边 m条询问: Q:id 以id为根的子树有几个苹果 C:id id处如果有苹果,摘掉,否则放上一个苹果。 解析: 假设输入的是这么一棵树: 看数据,肯定要前缀 ...
分类:
编程语言 时间:
2020-06-09 18:13:12
阅读次数:
66
1002 写出这个数 (20分) [1002 写出这个数 (20分)](https://pintia.cn/problem-sets/994805260223102976/problems/994805324509200384) #include<iostream> #include<string> ...
分类:
其他好文 时间:
2020-06-09 18:11:20
阅读次数:
63
从这里开始 传送门 说好的 agc 045 题解去哪了 Problem A 元旦老人与汉诺塔 直接状压每个盘子在哪个柱子,记忆化搜索即可。 时间复杂度 O(能过)。 Code #include <bits/stdc++.h> using namespace std; typedef bool boo ...
分类:
其他好文 时间:
2020-06-09 14:56:37
阅读次数:
60
复原二叉树 http://codeup.cn/problem.php?cid=100000611&pid=0 题目简述: 给你一棵二叉树的前序遍历和中序遍历,要求输出这棵二叉树的后序遍历 输入无限组,没有停止要求(文件读入) 补充知识: 既然做到了这道题,那就补充一下关于还原二叉树及二叉树遍历的知识 ...
分类:
其他好文 时间:
2020-06-09 14:28:44
阅读次数:
71
入门参考文献 1.Gong L, Wang Z, Chu C, Yuan Y, Wang T. bfSAT: An Incremental SAT Solver Based On Prioritizing Binary Clauses. 2019 IEEE International Confere ...
分类:
其他好文 时间:
2020-06-09 10:10:30
阅读次数:
95