自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

原创 python一行以空格隔开输入数组,提交代码显示“RE”,解决方案:

python使用“nums=[map(int,input().split()]"或者"nums=[int(i) for i in input().split()]"以空格隔开输入数组时,如果一行输入的数据太多会导致出现"RE"解决方法:换成这样子输出n=int(input()) #数组长度nums=[]while len(nums)<n: nums+=[int(i) for i in input().split()]就可以完美解决了!...

2022-01-01 10:16:37 902

原创 广西大学oj1510(类Fibonacci数列求值)

运用了矩阵快速幂的方法#include<iostream>#include<cstring>typedef long long ll;const int mod = 1000000007;using namespace std;ll base[3][3];ll ans[3][3];ll temp[3][3];//初始化void NO(ll a,ll b){ memset(base, 0, sizeof base); memset(ans, 0, s..

2021-12-22 11:57:50 204

原创 广西大学oj(给定两个整数 n 和 k,返回范围 [1, n] 中所有可能的 k 个数的组合)

#include<iostream>#include<string>#include<vector>#include<algorithm>using namespace std;vector<vector<int>> result; // 存放符合条件结果的集合vector<int> path; // 用来存放符合条件结果void backtracking(int n, int k, int startI.

2021-12-07 19:35:12 646

原创 广西大学oj1042(小西的数据结构作业)

直接源码,采用的麻烦点个赞呗!#include<iostream>#include<cstdio>#include<cstring>using namespace std;typedef unsigned long long LL;LL arr[5000000] = {};int main(){ LL n, m; LL a, b, c, sum = 0; int t; while (cin >> n >> m) {

2021-12-07 19:30:57 208

原创 广西大学oj1037(小西的c语言作业)

直接展示源码,采用或者用于参考的,麻烦给个赞呗,谢谢!#include <iostream>#include <cmath>#include <string>using namespace std;int main(){ string s; while (cin >> s) { string a, b; char ch = ' '; int A = 0, B = 0; int flag = 1, cnt = 0, unt

2021-12-07 19:23:51 589

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除