上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页
摘要: windows版本的 安装看这篇,非常详细:https://www.cnblogs.com/winton-nfs/p/11524007.html 彻底清除:https://www.pianshen.com/article/84121045092/ 重中之重:管理员运行cmd mac版本的 安装:ht 阅读全文
posted @ 2021-04-08 10:51 KinoLogic 阅读(63) 评论(0) 推荐(0)
摘要: 1.数组 *数组的创建 int[] array = {1,2,3,4,5}; 注意区别于C++ int a[] = (1)两种输出方法 public class number { public static void main(String[] args) { int[] array = {1,2, 阅读全文
posted @ 2021-04-07 16:03 KinoLogic 阅读(77) 评论(0) 推荐(0)
摘要: tx的笔试,但是只过了10%,就离谱 #include <bits/stdc++.h> using namespace std; const int maxn = 1010; long data[maxn][maxn] = {0}; long dp[maxn][maxn] = {0}; int ma 阅读全文
posted @ 2021-04-06 15:52 KinoLogic 阅读(380) 评论(0) 推荐(0)
摘要: 假定一种编码的编码范围是a ~ y的25个字母,从1位到4位的编码,如果我们把该编码按字典序排序,形成一个数组如下: a, aa, aaa, aaaa, aaab, aaac, … …, b, ba, baa, baaa, baab, baac … …, yyyw, yyyx, yyyy 其中a的I 阅读全文
posted @ 2021-04-04 16:51 KinoLogic 阅读(117) 评论(0) 推荐(0)
摘要: 晴神这个的最巧妙之处,在于用dp[i][0] = dp[0][j] = 0的边界条件 这样从1的下标开始填数组的时候,递推公式dp[i-1][j-1]之类的不会报错 #include <iostream> #include <string> #include <vector> #include <a 阅读全文
posted @ 2021-03-16 10:54 KinoLogic 阅读(224) 评论(0) 推荐(1)
摘要: 声明 vector<vector<int> vec; //赋值思路可以从这个很基础的操作里看出来 vector<int> a; a.push_back(1); a.push_back(2); a.push_back(3); vector<int> b; b.push_back(4); b.push_ 阅读全文
posted @ 2021-03-16 10:19 KinoLogic 阅读(1694) 评论(0) 推荐(0)
摘要: 一般用 s.length() s.size() 两种 size也可以用于vector string和vector的区别 string输入直接cin vector一般类似压栈pushback 输入一般是cin >> tmp 然后vec.push_back(tmp); 阅读全文
posted @ 2021-03-15 16:58 KinoLogic 阅读(777) 评论(0) 推荐(0)
摘要: #include <iostream> #include <vector> using namespace std; int main() { //输入 int tmp; vector<int> input; while (cin >> tmp) { input.push_back(tmp); if 阅读全文
posted @ 2021-03-15 15:49 KinoLogic 阅读(631) 评论(0) 推荐(0)
摘要: 思路主要是看了晴神的算法笔记,实现是自己重新用vector实现了一下,对付逗号隔开的输入 #include <iostream> #include <string> #include <cmath> #include <vector> #include <cstdio> using namespac 阅读全文
posted @ 2021-03-11 16:21 KinoLogic 阅读(407) 评论(0) 推荐(0)
摘要: 连续输入,以空格或者以逗号隔开,换行符结束 【范例】输入 23 12 34 56 33或者 23,12,34,56,33 则 vector<int> data; int tmp; while (cin >> tmp) { data.push_back(tmp); if (cin.get() == ' 阅读全文
posted @ 2021-03-11 14:57 KinoLogic 阅读(7326) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页