th
springboot集成themeleaf报Namespace 'th' is not bound问题的解决
# 问题描述 在我们想要在html前端页面使用**th:**符号时,发现他一直报错 # 问题解决 在html标签的最上方,也就是这里: ![](https://img2023.cnblogs.com/blog/2808014/202305/2808014-20230529214656925-1375 ......
28th
回文数 源代码 #include <iostream>using namespace std;int main(){//回文数 一个数的平方具有对称性质的int m[16]={0},count=0;int j,t,a;for(int i=1;i<=256;i++){ a=i*i; t=1; for( ......
27th
就上次保守数 因为 90625*90625 超出了int 范围 ,所以改用long long #include <bits/stdc++.h> using namespace std;int main(){ for(long long i=0;i<100000;i++){ int t=i; int ......
26th
保守数 源代码 #include <bits/stdc++.h> using namespace std;int main(){ for(int i=0;i<100000;i++){ int t=i; int count=0; while(t!=0){ t/=10; count++;//计算i是几位 ......
25th
亲密数 源代码 #include <bits/stdc++.h> using namespace std;int main(){ int a,b,n,i,j; for(a=1;a<=3000;a++){ for(i=1,b=0;i<=a/2;i++) if(a%i==0) b+=i; for(j=1 ......
CF1196F K-th Path 题解 floyd
题目链接:[https://codeforces.com/problemset/problem/1196/F](https://codeforces.com/problemset/problem/1196/F) 题目大意: 给定一个包含 $n$ 个节点 $m$ 条边的无向图($n,m \le 2 \ ......
C++ Primer 5th 阅读笔记:字符串,vector 和数组
# 前言 C++ 定义了丰富的抽象数据类型。 `string` 支持变长字符串。 `vector` 支持变长集合。 迭代器用于访问容器中的元素,比如,`string` 中的字符和`vector` 中的元素。 `string` 和 `vector` 都基于更加原始的数组类型。 # 使用 using 声 ......
24th
完数 #include <iostream>using namespace std;int main(){ int n; cin>>n; for(int i=2;i<=n;i++){ int sum=0; for(int j=1;j<i;j++){ if(i%j==0){ sum+=j; } } i ......
16th
三色球 #include <iostream>using namespace std;int main(){ //红球有三个 白球有三个 黑球有六个 //摸八个球 有多少种组合? int red=3,wh=3,bl=6; for(int m=0;m<=red;m++) for(int n=0;n<= ......
Java Test ENV setup for Algorithms, 4th Edition
set java env, add /home/linxu/myspace/java_projects/algs4/algs4.jar to CLASSPATH sudo vim ~/.bashrc export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd6 ......
15th
分糖果问题 源代码 #include <iostream>using namespace std;int judge(int c[]){ int i; for(i=0;i<10;i++) if(c[0]!=c[i]) return 1; return 0; }int main(){ int coun ......
The 16th Harbin Engineering University Collegiate Programming Contest
The 16th Harbin Engineering University Collegiate Programming Contest A. stral Reflection 用右界覆盖左界为下标的数组 构成一个以i为左界,a[i]为右界的数组 以此表示区间 对于每一个陨石都尽可能找左界<=自己 ......
14th
L1-023 输出GPLT 给定一个长度不超过10000的、仅由英文字母构成的字符串。请将字符重新调整顺序,按GPLTGPLT....这样的顺序输出,并忽略其它字符。当然,四种字符(不区分大小写)的个数不一定是一样多的,若某种字符已经输出完,则余下的字符仍按GPLT的顺序打印,直到所有字符都被输出。 ......
C++ Primer 5th 阅读笔记:变量和基本类型
一些语言的公共特性 内建类型,如整型,字符型等; 变量,为值绑定的一个名字; 表达式和语句,操作值。 分支和循环,允许我们条件执行和重复执行; 函数,定义抽象计算单元。 扩展语言的方式 自定义类型; 标准库。 本章重点 学习语言的基本知识和标准库。 内建类型; 简要介绍自定义类。 类型 定义了数据的 ......
C++ Primer 5th Edition, Chapter 2, Solutions
Exercise 2.1 Questions What are the differences between int, long, long long, and short? Between an unsigned and a signed type? Between a float and a ......
12th
趣味题 谁先倒 划拳是古老中国酒文化的一个有趣的组成部分。酒桌上两人划拳的方法为:每人口中喊出一个数字,同时用手比划出一个数字。如果谁比划出的数字正好等于两人喊出的数字之和,谁就输了,输家罚一杯酒。两人同赢或两人同输则继续下一轮,直到唯一的赢家出现。 下面给出甲、乙两人的酒量(最多能喝多少杯不倒)和 ......
11th
二分查找 作为一个比较重要的算法 比如 对一个升序序列 1 2 3 4 5 6 7; 想要知道 某一个数 的位置 或者是下标 第一步 设立 左 中 右 int left ,mid,right; 让左中右分别指向 左边 中间 右边 left=0,right=7,mid =(left+right)/2 ......
10th
冒泡排序 是对一个无序数列 变为 有序 冒泡排序的思想是 从前到后 逐对比较, 不符合排序 就进行一次交换操作 对 n 个数来说 最坏的情况是进行 n*(n-1)/2次操作 源代码: #include <iostream>using namespace std; int n;int main(){ ......
9th
个位数统计 给定一个 k 位整数 N=dk−110k−1+⋯+d1101+d0 (0≤di≤9, i=0,⋯,k−1, dk−1>0),请编写程序统计每种不同的个位数字出现的次数。 例如:给定 N=100311,则有 2 个 0,3 个 1,和 1 个 3。 对 N 中每一种不同的个位数字 ......
8th
银行利率问题 原先的顺序: 第n-1年本金=本金*利率*时间+本金-1000 第五年刚好取完 源代码 #include <iostream>int main(){ float rate =0.0063; float ben=0; int months=12; for(int i=0;i<5;i++) ......
30th@list@20230417
> 20230417 NumChenyu_spider.py > 带数字成语抓取 > 20230417 HanNum_count.py > 文本汉字字数统计 HanDifChar_count.py > 文本汉字相异字统计 HanPrimePosition_list.py > 文本质数位汉字列表 ......
5th
浅谈递归 经典问题 斐波那契数列 1 1 2 3 5 8 13 21 ..... ai=a(i-1)+a(i-2); 其实递归问题都可以想象成树状图 #include <iostream>using namespace std;int fun(int i);//古典的斐波那契数列 //兔子 每三个月 ......
4th
肇事车牌 简单的方程问题 每一位车牌号 是0~9 #include <iostream>using namespace std;int main(){ int a1,a2,a3,a4; for(int a1=0;a1<=9;a1++){//for 循环 控制第一位数 a2=a1;//第一位与第二位相 ......
30th@OEIS_analysis.py@20230413
OEIS_analysis.py 20230413 For further information about the format of replies received from the database, click here. See also the hints file for furt ......
Perfect P-th Powers UVA - 10622
给出 n, 写成 n= x^p 的形式,求p最大值 #include <iostream> #include <vector> #include <cmath> #include <algorithm> using namespace std ; #define int long long int ......
AtCoder ABC239 E - Subtree K-th Max
AtCoder ABC239 E - Subtree K-th Max 题目描述 给定一棵 $n$ 个节点的树,$i$ 节点的权值为 $x_i$,根节点编号为 $1$。 现有 $Q$个询问,每个询问给定 $v,k$,求节点 $v$ 的子树第 $k$ 大的数。 输入输出样例 5 2 1 2 3 4 5 ......
{Th1s_1s_a_test}
public class WelcomeProgram { public static void main(String[] args) { String name = "MY friend"; System.out.println("欢迎 " + name + " 使用这个程序!"); } } ......
th:if="${item.getCategoryStatus() eq 1}"类型错误
item.getCategoryStatus()等于1,但th:if="${item.getCategoryStatus() eq 1}"为false。。。。为什么,因为数据库里CategoryStatus是varchar类型 类型不一样所以不相等 ......
论文翻译:2022_腾讯DNS 1th TEA-PSE: Tencent-ethereal-audio-lab personalized speech enhancement system for ICASSP 2022 DNS CHALLENGE
论文地址:TEA-PSE: 用于ICASSP 2022 DNS挑战赛的Tencent-ethereal-audio-lab 个性化语音增强系统 论文代码: 引用格式:Ju Y, Rao W, Yan X, et al. TEA-PSE: Tencent-ethereal-audio-lab pers ......