素数day 39

April Fools Day Contest 2021 A. Is it rated - 2

询问若干个问题,每个问题用一段字符串表示,存在空格。每个问题一行,对于每个回答,只需要输出 \(NO\) 。 view1 #include <bits/stdc++.h> char s[1000005]; void solve(){ while (fgets(s, 1000005, stdin) ! ......
Contest April Fools rated 2021

CF1835D Doctor's Brown Hypothesis

D - Doctor's Brown Hypothesis 首先,一对合法的\((x,y)\)一定是在同一个\(scc\)中的,所以我们将每个\(scc\)分开处理 若我们当前在处理某一个\(scc\),考虑给这个\(scc\)建一棵\(dfn\)树,设当前\(scc\)中的所有的环长度的\(gcd ......
Hypothesis Doctor 1835D Brown 1835

【2023年10月10日】STF60_docker_Day01(下午)

STF60_docker_Day01(下午) 容器运行 先导入镜像 docker load < /home/centos-lamp.tar 给导入的镜像命名 docker tag 0b8d nickistre/centos-lamp.tar 交互式运行容器 一般就是临时用用,看看配置文件等等 doc ......
docker_Day docker 2023 STF Day

zTT@MobiSys '21

这篇工作还是做的是一个DVFS技术,来动态调整CPU/GPU的电压和频率,达到节能、控温。 1. introduction 传统的DVFS技术主要停留在操作系统内核层面,与应用程序无关。但是不同的应用的需求决定了它们的最佳的CPU,GPU的功耗分布。 一些DVFS无法摆脱过热的问题。这里举例(图1) ......
MobiSys zTT 39 21

'FancyArrow3D' object has no attribute 'do_3d_projection'问题

《程序员数学:用Python学透线性代数和微积分》第3章,源码bug修正。 错误原因: 画“三维箭头”图形的时候,系统报错“AttributeError: ‘Arrow3D’ object has no attribute ‘do_3d_projection’”。 猜测可能是matplotlib3. ......

记一次 MatPlotLib 报错及解决方案:AttributeError: module 'matplotlib.cbook' has no attribute '_Stack'

记录了最近遇到的 MatPlotLib 的 AttributeError: module 'matplotlib.cbook' has no attribute '_Stack' 问题的解决方案。 ......

学习笔记427—Python Keras 报错AttributeError: 'Sequential' object has no attribute 'predict_classes'解决方法

Python Keras 报错AttributeError: 'Sequential' object has no attribute 'predict_classes'解决方法 本文文要介绍Python中,使用 Keras 执行yhat_classes = model.predict_classe ......

day 1 数组 704.二分查找、27.移除元素

704.二分查找 题目链接:704.二分查找 视频教程 文章教程 思路 利用 middle 去寻找 target 前提条件: 这道题目的前提是数组为有序数组,同时题目还强调数组中无重复元素,因为一旦有重复元素,二分查找法返回的元素下标可能就不唯一,这些都是二分法的前提,以后看到题目描述后可以先想一想 ......
数组 元素 day 704 27

【2023年10月10日】STF61_docker_Day01(上午)

STF61_docker_Day01(上午) 1. 什么是docker? docker类似于VMware软件,也能虚拟出来很多的系统,虚拟出来的系统不叫虚拟机,叫容器。 docker:linux系统上的虚拟机 2. docker和传统虚拟机的区别 VM:使用VMware提供虚拟机的运行平台,管理每个 ......
docker_Day docker 2023 STF Day

Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist

一 背景 跑了一份centos容器,想装一下net-tools, 报如下错误 Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorl ......

谷粒商城-day3

1、分布式组件 nacos 然后重启服务 2、分布式远程调用openfeign 2、nacos配置中心 注:- 然后发布- 运行 以上可以运行测试 以上可以运行测试 4、加载多配置集 然后发布。 然后发布。 然后重启coupon 测试。 结果为对应的默认读取的 5、gateway创建和测试 然后发布 ......
谷粒 商城 day3 day

Learn Git in 30 days—— 第 29 天:如何将 Subversion 项目汇入到 Git 仓库

写的非常好的一个Git系列文章,强烈推荐 原文链接:https://github.com/doggy8088/Learn-Git-in-30-days/tree/master/zh-cn 当你越来越了解 Git 版本控制,一定会越来越想把手边的 Subversion ( 简称 SVN ) 项目改用 ......
Subversion 仓库 Git 项目 Learn

[902] Get the current file's directory of CMD batch scripts

In a batch file, you can use the %~dp0 special variable to get the directory of the currently executing batch file. Here's how you can do it: @echo of ......
directory current scripts batch file

引用axios时出现问题——Cannot read properties of undefined (reading 'get') TypeError: Cannot read properties of undefined (reading 'get')

问题描述 我就是按照特别正常的操作进行引用,但是就一直显示axios的get未定义; 问题解决 本来我是使用的this.$axios.get,引用的全局变量, 然后直接改成这样(在该vue界面定义的import,没有使用全局变量): 就能解决这个问题啦! ......
properties undefined reading Cannot 39

素数的判定:筛法

素数很有用,特别是在密码学领域中,比如RSA中很重要的一步就是寻找两个比较大的素数,通常的做法是先随机生成一个大整数,然后使用一些素性判定的方法,比如费马素性测试。在算法竞赛的数论题目中,素数也很常见,通常的做法是先找出一定范围内的所有素数,用到时再查表,筛法就可以做到。 1. 埃氏筛 埃拉托斯特尼 ......
素数

【日常收支账本】【Day04】优化编辑动账记录的操作——QTableWidget单元格设置QComboBox控件

一、项目地址 https://github.com/LinFeng-BingYi/DailyAccountBook 二、新增 1. 在表格中设置选项列表,让用户更快地编辑动账记录 1.1 功能详述 为表格中以下字段设置选项列表: 1. 需求强度(由"基本需求"更名) 温饱:基本维持生存且不铺张浪费的 ......
账本 收支 控件 QTableWidget QComboBox

AttributeError: module 'tensorflow' has no attribute 'get_default_graph'

具体操作命令是:创建一个python <3.8的虚拟环境。conda create -n your_env_name python=3.6激活并进入该环境。activate your_env_name安装1.x版本的tensorflow。pip install tensorflow==1.15.0 ......

AttributeError: module 'tensorflow.compat.v2' has no attribute '__internal__'

File /home/software/anaconda3/envs/mydlenv/lib/python3.8/site-packages/keras/backend_config.py:33 28 # Default image data format, one of "channels_las ......

ImportError: cannot import name 'tokenizer_from_json' from 'tensorflow.python.keras.preprocessing.text'

ImportError: cannot import name 'tokenizer_from_json' from 'tensorflow.python.keras.preprocessing.text' (/home/software/anaconda3/envs/mydlenv/lib/pyt ......

ModuleNotFoundError: No module named 'models'

首先看看是不是用户自己的包,如果不是再安装网上的包。 ModuleNotFoundError Traceback (most recent call last) Cell In[1], line 45 42 import keras_metrics as km 43 from keras.model ......
ModuleNotFoundError module models named 39

ValueError: ('`tf.compat.v1.keras` Optimizer is not supported when eager execution is enabled. Use a `tf.keras` Optimizer instead, or disable eager execution.')

ValueError: ('`tf.compat.v1.keras` Optimizer (', <tensorflow.python.keras.optimizers.SGD >, ') is not supported when eager execution is enabled. Use a ......
Optimizer execution keras eager ValueError

AttributeError: module 'tensorflow' has no attribute 'reset_default_graph'

环境配置: python3.7 tensorflow2.0 Window 10初始代码:tf.reset_default_graph()解决方法:import tensorflow as tftf.compat.v1.reset_default_graph()或者是这样:import tensorf ......

java基础-反射-day15

目录1. 案例引入2. Class 的理解3. 反射的详细使用4. Class 类都有哪些实例5. 详细使用6. 获取属性7. 获取方法8 获取类的 接口 注解 所在的包9. 思考 JAVA反射机制是在运行状态中,对于任意一个类,都能够知道这个类的所有属性和方法;对于任意一个对象, 都能够调用它的任 ......
基础 java day 15

Alice's Stamps

Description 给定 \(n\) 个区间,选择至多 \(k\) 个区间,使得被覆盖的元素的个数最多。求最大值。\(1\leq l\leq r\leq n\)。 Solution 赛场上想的是用区间定义状态,先把区间按右端点排序,\(dp_{i,k}\) 表示考虑前 \(i\) 个区间,选了其 ......
Stamps Alice 39

Learn Git in 30 days—— 第 28 天:了解 GitHub 的 fork 与 pull request 版控流程

写的非常好的一个Git系列文章,强烈推荐 原文链接:https://github.com/doggy8088/Learn-Git-in-30-days/tree/master/zh-cn 我们知道 Git 仓库并没有什么「权限控制」的概念,因为他是分散式的版本控制系统,当你执行 git clone  ......
流程 request GitHub Learn days

python29days

继承 单继承下的属性查找 多继承下的属性查找 super和mro的使用 多态和鸭子类型 —————————————————————————————————————————————————面向对象的三大特征: 封装,继承,多态 什么是继承? 继承就是让类和类之间产生父子关系,子类可以拥有父类的静态属性 ......
python days 29

MAC Office 插件异常 Run-time error '53'

问题描述: Office版本和Mathtype版本不兼容,卸载mathtype后,加载项无法加载出现如下报错: File not found: /Library/Application Support/Microsoft/Office365/User Content.localized/Startu ......
插件 Run-time Office error 39

2023_10_09_MYSQL_DAY_01

2023_10_09_MYSQL_DAY_01 #运算符的优先级 SELECT ename, job, sal FROM emp WHERE ( job='SALESMAN' OR job='PRESIDENT') AND sal>1500; SELECT ename, job, sal FROM ......
MYSQL_DAY MYSQL 2023 DAY 10

2023_10_09_MYSQL_DAY_01_课后题

2023_10_09_MYSQL_DAY_01_课后题 #第三章 #1. 查询每名员工的员工姓名,入职时间。 SELECT ename, hiredate FROM emp; #2. 查询部门表中部门名称及部门所在地。 SELECT dname, loc FROM dept; #3. 查询所有员工的 ......
MYSQL_DAY MYSQL 2023 DAY 10

Day16 函数对象--函数嵌套调用--闭包函数

1.Day15_复习1: 2.Day15_复习2: 3.Day15_复习3: 4.函数对象_可以赋值_可以当做函数参数传给另外一个函数: 5.函数对象_可以当做函数另外一个函数的返回值_可以当做容器类型的一个元素: 6.函数对象初步实现ATM流程: 7.函数对象应用案例优化: 8.函数的嵌套调用: ......
函数 闭包 对象 Day 16