ICode9

精准搜索请尝试: 精确搜索
  • ubuntu20.4更新时,突然断网Problem parsing dependency,Error occurred while processing,Problem with MergeList2022-07-31 02:31:47

      ubuntu更新时,突然断网。于是出现了这样的错误: E: Problem parsing dependency 21 of linux-modules-nvidia-418-server-5.11.0-1020-gcp:amd64=5.11.0-1020.22~20.04.1 E: Error occurred while processing linux-modules-nvidia-418-server-5.11.0-1020-gcp (NewVersion2) E:

  • MustGather: Classloader problems for WebSphere Application Server2022-07-27 15:34:33

    MustGather: Classloader problems for WebSphere Application Server Troubleshooting https://www.ibm.com/support/pages/mustgather-classloader-problems-websphere-application-server Problem The following MustGather will assist you in setting up th

  • 【题解】CF1264F Beautiful Fibonacci Problem2022-07-27 15:05:29

    题目链接 讲一个不是官方题解的做法。该做法来自 评论区。 题目要求构造 \(a+id\) 为 \(F_{b+ie} \bmod 10^{18}\) 的一个子串。自然考虑把这个子串在一个固定的位置构造。但是打个小一点的表容易发现最后几位是无法构造出所有数字的。 发现 \(a+id\le10^6\),也就是说 \(a+id\) 最

  • "蔚来杯"2022牛客暑期多校训练营1 GADI (对官方题姐的一些理解,新手向)(未完)2022-07-20 00:00:19

    "蔚来杯"2022牛客暑期多校训练营1 https://ac.nowcoder.com/acm/contest/33186#question 我队战绩:3/11(其实是队友战绩。。因为我太菜了) Problem A. Villages: Landlines 题意 整晕了。。反正就是给n个区间,然后求把所有区间连在一起的代价 解法 也就是看没有被区间覆盖到的长度是

  • 2022 暑假模拟赛 整理合集2022-07-19 22:03:54

    两天四道 AtC 小清新题... Contest1876 - NOIP2022模拟测试赛(一) Problem A: Eating Symbols Hard 双哈希 + 差分。 【ARC099D】 Eating Symbols Hard 题解——by 531 反思:一味认为题目实现不需要相关算法/数据结构的配合,过度推性质。 哈希意识薄弱。 Problem B: Independence 补图

  • SD2022 第二轮省队集训2022-07-16 15:02:38

    day 1 T1 https://www.luogu.com.cn/problem/P7163 \(f(u,0/1,0/1/2)\) 表示走完 \(u\) 的子树,\(u\) 的子树全都开启,\(u\) 是关闭/开启,\(u\) 内部有 \(0/1/2\) 个路径端点,的最小路径长度 然后转移的时候要加入 \(u\) 的一个儿子 \(v\) 端点的个数就是背包,然后考虑一下哪些点被多走

  • [CF1699C]The Third Problem2022-07-13 21:04:25

    做题时间:2022.7.12 \(【题目描述】\) 给定一个长度为 \(N(N\leq 10^5)\) 的排列 \(a_i\) ,其中的数包括 \([0,n-1]\) ,求出有多少个排列 \(b_i\) 满足对于 \(\forall l,r,1\leq l\leq r\leq N\) ,满足: \[\operatorname{MEX}([a_l,a_{l+1},\ldots,a_r])=\operatorname{MEX}([b_l,b_{l+

  • queue<problem> 2022.7.10 updated2022-07-10 18:35:37

    CF 800-1600 模拟、贪心、数学、DP(先这么几个 并查集 836. 合并集合 - AcWing题库 P3367 【模板】并查集 - 洛谷 | 计算机科学教育新生态 (luogu.com.cn) P1551 亲戚 - 洛谷 | 计算机科学教育新生态 (luogu.com.cn) 837. 连通块中点的数量 - AcWing题库 P3958 [NOIP2017 提高组

  • Train Problem II2022-07-10 00:35:44

       代码如下: #include<iostream> #include <cstring> using namespace std; const int MOD = 10000; int n; int c[105][20]; int main() { memset(c, 0, sizeof c); c[1][1] = 1; for(int i = 2; i <= 100; i ++ ) { int rem =

  • CF1699C The Third Problem2022-07-05 16:08:30

    思路: 找规律。 实现: 1 #include<bits/stdc++.h> 2 using namespace std; 3 int a[100005]; 4 int main(){ 5 //freopen("in.txt","r",stdin); 6 int t;cin>>t; 7 while(t--){ 8 int n;cin>>n; 9 vecto

  • The Third Problem2022-07-05 10:35:16

    You are given a permutation a1,a2,…,ana1,a2,…,an of integers from 00 to n−1n−1. Your task is to find how many permutations b1,b2,…,bnb1,b2,…,bn are similar to permutation aa. Two permutations aa and bb of size nn are considered similar

  • 2702. problem b2022-06-29 02:01:14

    题目链接 2702. problem b 同215. 破译密码 对于给出的 \(n\) 个询问,每次求有多少个数对 \((x,y)\),满足 \(a≤x≤b,c≤y≤d\),且 \(\text{gcd}(x,y) = k\),\(\text{gcd}(x,y)\) 函数为 \(x\) 和 \(y\) 的最大公约数。 输入格式 第一行一个整数 \(n\)。 接下来 \(n\) 行每行五个整数,分

  • A Knight’s Tour --- BackTracking2022-06-20 13:31:08

    A Knight’s Tour https://www.tutorialspoint.com/The-Knight-s-tour-problem In chess, we know that the knight can jump in a special manner. It can move either two squares horizontally and one square vertically or two squares vertically and one square horizo

  • [CF527D]Clique Problem 题解2022-06-19 22:33:42

    传送门QAQ Preface 终究是思维能力不够啊QAQ 学到了学到了。 Analysis 首先观察到连边具有双向性,考虑直接拆开绝对值,即 \(x_i - x_j\ge w_i+w_j\) 很显然,珂以把相同下标的放到一块维护,即 \(x_i-w_i\ge x_j+w_j\) 这玩意没有任何性质,我看了半天也没找出任何用巧妙的暴力或线段树求

  • 软构Lab1 实验报告2022-06-14 01:31:28

    1 实验目标概述 本次实验通过求解三个问题,训练基本 Java 编程技能,能够利用 Java OO 开发基本的功能模块,能够阅读理解已有代码框架并根据功能需求补全代码,能够为所开发的代码编写基本的测试程序并完成测试,初步保证所开发代码的正确性。另一方面,利用 Git 作为代码配置管理的工具,学

  • 目录2022-06-09 20:07:29

    质数的和与积 求阶乘的和 级数求和 求平均年龄 质数判断阶乘 A + B Problem 温度表达转换 字符菱形 判断一个数能否同时被3和5整除 字符三角形 计算邮资

  • 目录2022-06-09 20:07:28

    质数的和与积 求阶乘的和 级数求和 求平均年龄 质数判断阶乘 A + B Problem 温度表达转换 字符菱形 判断一个数能否同时被3和5整除 字符三角形 计算邮资

  • A + B Problem2022-06-09 19:02:45

    描述 输入两个自然数, 输出他们的和 格式 输入格式 两个自然数x和y (0<=x, y<=32767). 数据在同一行,中间用空格分隔 输出格式 一个数, 即x和y的和. 样例 输入样例 123 500 输出样例 623 代码 #include <stdio.h> int main() { int x, y, sum = 0; scanf("

  • 软件构造 Lab 12022-06-08 01:01:33

    下面是实验一的实验报告,对其进行重新编排转化为markdown格式,并在重新回顾的过程又获得了新的感悟和思考。 2022年春季学期 计算学部《软件构造》课程 Lab 1实验报告 姓名 赵伟东 学号 120......... 班号 2003... 电子邮件 986579251@qq.com 手机号码 1660929....

  • LeetCode 0213 House Robber II2022-06-04 09:31:35

    原题传送门 1. 题目描述 2. Solution 1 1、思路分析 This problem is a little tricky at first glance. However, if you have finished the House Robber problem, this problem can simply be decomposed into two House Robber problems. Suppose there are n houses, since

  • CF Gym103415D Unnamed Easy Problem2022-06-03 07:31:41

    Description 计算满足下列条件的 \([m\times n]0/1\) 矩阵的数量: 每行后 \(n-k\) 列至少有一个 \(1\) 每行互不相同 \(1\sim p\) 列共有奇数个 \(1\),\(k+1\sim k+q\) 列共有奇数个 \(1\) 行之间无序 \(1\le k<n\le 10^9,m\le 10^6\) Solution 先不考虑最后一个限制,最后

  • 二言不发2022-05-23 21:31:31

    有空再补“一言不发”吧,以前忘记写了,气死了

  • POJ-3468 A Simple Problem with Integers2022-05-19 19:32:24

    A Simple Problem with Integers 线段树 || 分块 模板题 线段树: #include<cstdio> #include<algorithm> using namespace std; typedef long long ll; const int maxn = 2e5 + 10; ll num[maxn]; struct node { int l; int r; ll val; ll lazy; }tree[maxn * 4]; void

  • B. Stone Age Problem_思维2022-05-17 10:32:11

    B. Stone Age Problem_思维 题目大意: 给定一个序列a和q次询问。第一种询问要将ai换成x,第二次询问将整个序列换成x。每次询问要给出整个序列的和。 思路和代码: 乍一看是一个区间查询问题,用线段树可能会T,我毛姑姑这个懒标记应该会很慢。 仔细想一下可以发现不论单点修改了几次,只要有

  • POJ-3320 Jessica's Reading Problem2022-05-13 01:32:24

    Jessica's Reading Problem 尺取法模板题 #include <iostream> #include <cstdio> #include <algorithm> #include <vector> #include <string> #include <queue> #include <functional> #include <map> #include <set>

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有