problems

NEFU OJ Problem1485 贪吃蛇大作战 题解

Problem:F Time Limit:1000ms Memory Limit:65535K 题目 Description 贪吃蛇大家一定都玩过吧,现在宋哥也要玩这个游戏,最初的时候贪吃蛇从屏幕的左下角出发,但是有一个非常不幸的事情,就是宋哥的游戏机的左键和下键坏掉了,这意味着什么?没错!他只能操 ......
题解 Problem NEFU 1485 OJ

NEFU OJ Problem1487 时空乱流题解

时空乱流 Problem:E Time Limit:1500ms Memory Limit:65535K Description 星际飞行员Alice在一次航行中遭遇了时空乱流,时空乱流将导致Alice乘坐的飞船在n个位面之间穿梭。 星际宇航局管理员Bob收到了Alice的求救信号,决定在某些位面上 ......
乱流 题解 时空 Problem NEFU

T399753 counting problem(计数问题)题解

Link T399753 counting problem(计数问题) Question 给出一个正整数 \(n\) ,求 \(AB+CD=n\) 的方案数, \(A,B,C,D\) 都是要求是正整数 Solution 考虑直接枚举 \(ABCD\) 显然是不切实际的 那么就折半枚举 设 \(F_i ......
题解 counting T399753 problem 399753

T399751 Liangle's Rose Problem(亮亮的玫瑰问题)题解

Link T399751 Liangle's Rose Problem(亮亮的玫瑰问题) Question 给出一个数组 \(a\) ,有 \(Q\) 次询问,每次询问 \([L,R]\) 种随便挑选几个连续的 \(a_i\) 使得,他们几个的或的值最大 Solution 考虑贪心,如果把负数视为 ......
题解 玫瑰 T399751 Liangle Problem

执行git clone命令报错 ssl certificate problem:unable to get local issue certificate问题的处理

1、背景说明 使用git clone命令,拉取远程的https的git仓库时,报错: unable to access "https://xxxx.com/n_patch_test.git/": ssl certificate problem:unable to get local issue ce ......
certificate 命令 problem unable 问题

AGC041D-Problem Scores 题解

题目链接 luogu atcoder 分析 令 \(k=\left \lfloor \frac{n}{2} \right \rfloor\) 对于第三个条件,只需要满足 \(\sum_{i=1}^{k+1}a[i]<\sum_{i=n-k+1}^{n}a[i]\) 即可 有一个 \(trick\): ......
题解 D-Problem Problem Scores AGC

[题解] CF1748E Yet Another Array Counting Problem

Yet Another Array Counting Problem 给你一个长度为 \(n\) 的序列和一个数 \(m\),求有多少个长度为 \(n\) 的序列 \(b\) 满足: \(\forall i \in [1, n], b_i \in [1, m]\)。 对于每个区间 \([l, r]\ ......
题解 Counting Another Problem 1748E

高精A+B Problem

#include <iostream> #include <cstdio> using namespace std; int c[100000]; int d[100000]; int e[100000]; int main() { string a, b; cin >> a >> b; if (a ......
高精 Problem

P2639 [USACO09OCT] Bessie's Weight Problem G

大概就是在不超过容量的情况下,问你最多能吃多少 是吃与不吃,选与不选的问题,所以是01背包,但是是变式 #include<bits/stdc++.h> using namespace std; const int N=5e4; int f[N],t[1000]; int main(){ int T, ......
Problem Bessie Weight P2639 USACO

Kattis - A Complex Problem (The 2023 ICPC Rocky Mountain Regional Contest)

Intro This was one of the problems I didn't do during the regional contest. One of my teammates solved it. Observation There are few things to note. F ......
Mountain Regional Complex Contest Problem

CF803G Periodic RMQ Problem

题目描述 给你一个序列\(a\) 让你支持 \(1\) \(l\) \(r\) \(x\) 区间赋值 \(2\) \(l\) \(r\) 询问区间最小值 我们觉得这个问题太水了,所以我们不会给你序列\(a\) 而是给你序列一个长度为\(n\) 的序列\(b\) ,把\(b\) 复制粘贴\(k\) 次 ......
Periodic Problem 803G 803 RMQ

The use of green energy can effectively solve the problem of air pollution

The use of green energy can effectively solve the problem of air pollution 一、the operation of green energy Green energy refers to a way of producing a ......
effectively pollution problem energy green

D - Good Tuple Problem atcoder abc 327

D - Good Tuple Problem https://atcoder.jp/contests/abc327/tasks/abc327_d 思路 https://www.zhihu.com/question/292465499 判断二分图 的常见方法是染色法:用两种颜色,对所有顶点逐个染色,且 ......
Problem atcoder Tuple Good 327

Problem Description

Problem Description 在N*N的方格棋盘放置了N个皇后,使得它们不相互攻击(即任意2个皇后不允许处在同一排,同一列,也不允许处在与棋盘边框成45角的斜线上。 你的任务是,对于给定的N,求出有多少种合法的放置方法。 Input 共有若干行,每行一个正整数N≤10,表示棋盘和皇后的数量 ......
Description Problem

How To Solve The Problem Of Air Pollution

How To Solve The Problem Of Air PollutionThe report "China's Carbon Neutrality and Clean Air Synergy Pathway (2023)" was published in Beijing on Novem ......
Pollution Problem Solve How Air

PSO Solve N-Queen Problem

title: PSO Solve N-Queen Problem layout: page categories: data analysis PSO Solve 16-Queen Problem The N-Queens problem is a classic problem in the fi ......
N-Queen Problem Solve Queen PSO

CF1325E Ehab's REAL Number Theory Problem

题目传送门 题目大意 给定 \(n\) 个数,每个数的因数个数不超过 \(7\),求最少选出多少个数能使得乘积为一个完全平方数。 无解输出 \(-1\)。 思路 约数个数定理:对于 \[n=\prod^{k}_{i=1}p_i^{a_i} \]\(n\) 的正约数个数为 \(\prod^{k}\li ......
Problem Number Theory 1325E 1325

SEERC 2020 Problem H

题目链接 模拟赛搬了这题,场切了顺手写个题解。 这种题当然先考虑单组询问怎么做,然后再拓展出去。 设按位与的集合是 \(A\),按位或的集合是 \(B\),结果都是 \(x\),我们考虑 \(A,B\) 的元素应该满足的性质。不难发现,所有 \(y<x\) 的 \(y\) 都应该在 \(B\),\( ......
Problem SEERC 2020

[ABC327G] Many Good Tuple Problems 题解

题意 对于一对长度均为 \(M\) 且元素值在 \(\left[1, N\right]\) 之间的序列 \((S, T)\),定义其为好的当且仅当: 存在一个长度为 \(N\) 的 \(01\) 序列 \(X\),使得其满足如下条件: 对于任意 \(i \in \left[1, M\right]\) ......
题解 Problems Tuple 327G Many

NEFU OJ Problem1356 帽儿山奇怪的棋盘 题解

帽儿山奇怪的棋盘 题目: Time Limit:1000ms Memory Limit:65535K Description 军哥来到了帽儿山,发现有两位神人在顶上对弈。棋盘长成下图的模样: 每个点都有一个编号:由上到下,由左到右,依次编号为 1、2……12。两位神人轮流博 弈,每一轮操作的一方可以 ......
帽儿 题解 棋盘 Problem NEFU

environmental problem--deforestation

Deforestation is a serious environmental issue in China and many other countries. The main reasons for deforestation are economic development needs, u ......
environmental deforestation problem

Trailhead - 证书维护挑战失败 提示Whoops, looks like there was a problem. Please try again.

前情提要 当进行Trailhead证书维护的时候,往往会需要完成答题+挑战(Challenge)。然而有时候会遇到下述的问题👉代码正确(至少看起来)并且在页面验证通过,在Challenge里Check时却提示”Whoops, looks like there was a problem. Plea ......
Trailhead 证书 problem Please Whoops

China's Air Pollution Problem

China's Air Pollution Problem Air pollution is a global problem, but China is particularly serious about it. In recent years, China's air quality inde ......
Pollution Problem China Air 39

Solution to OpenSSL Connection Problems With Github

Problems Uploading Files with Git Sometimes we can use git tool to successfully upload projects to Github, but in other time especially after a period ......
Connection Solution Problems OpenSSL Github

https://www.luogu.com.cn/problem/P1104 生日问题笔记

标记:当出现一组数据中有多个数据,这个时候我们常考虑用结构体去编写代码,因为结构体可以使得 几个本不相关的变量联系起来,并且当一个变量改变时,其他变量也会跟着改变,这使得代码变得简单。 使用结构体后,我们在读入数据之后,我们用sort 进行排序,并且构造一个cmp函数,使得我们的排序 满足题目的要求 ......
problem 生日 笔记 问题 https

Urbanization Problem in CHINA

Urbanization Rapid urbanization has taken place in China ever since the economic development and socioeconomic changes of the 1980s. Approximately 40% ......
Urbanization Problem CHINA in

2021 CCPC桂林 B.A Plus B Problem (线段树)

传送门 线段树大模拟!。考验线段树功底的时候来了,作为队伍的史山选手,写这么史也是情有可原的。 #include <bits/stdc++.h> using ll = long long; const int INF = 0x3f3f3f3f; const int N = 1e6 + 10; typ ......
线段 Problem 2021 CCPC Plus

CF1073G Yet Another LCP Problem

一道 *2600 调了一年,代码细节是有点粪了,但自己菜也是挺菜的。/oh/oh 考虑容斥,令 \(f(A)=\sum\limits_{i,j\in A}\operatorname{lcp}(i,j)\),那么答案就是 \(f(A\cup B)-f(A)-f(B)\)(这里的并表示可重集合并)。 令 ......
Another Problem 1073G 1073 Yet

SSL certificate problem: unable to get local issuer certificate 错误解决

终端报了如下错误git SSL certificate problem: unable to get local issuer certificate 这个问题是由于没有配置信任的服务器HTTPS验证。默认,cURL被设为不信任任何CAs,就是说,它不信任任何服务器验证。在网上查了很多方法,最终使用 ......
certificate 错误 problem issuer unable

[HDU 3483] A Very Simple Problem 题解

题目描述 快速求出下面式子的值: \[\left(\sum\limits_{k=1}^{N}k^{x}x^{k}\right)\bmod M \]其中 \(1 ≤ N, M ≤ 2\times 10^9\), 并且 \(1 ≤ x ≤ 50\)。 题解 (solution) 对于该类题目,\(N\) ......
题解 Problem Simple 3483 Very