码迷,mamicode.com
首页 >  
搜索关键字:no executable code    ( 109276个结果
70. Climbing Stairs
仅供自己学习 思路: 这种题应该用动态规划,因为上到n台阶的方案需要分成不同种方案,即上一层和上两层的多种组合。 首先考虑上到最后一层,可以有上一层台阶到达最后一层,也可以有上两层台阶到达最后一层,那么总的方法就有 dp[n]=dp[n-1]+dp[n-2]种。 因为题目给的范围不为0,所以dp[0 ...
分类:其他好文   时间:2021-04-06 14:16:11    阅读次数:0
LCP 17. 速算机器人
仅供自己学习 思路: 直接遍历判断即可 class Solution { public: int calculate(string s) { int n=s.length(); int x=1,y=0; for(int i=0;i<n;++i){ if(s[i]=='A') x = 2*x+y; e ...
分类:其他好文   时间:2021-04-06 14:14:23    阅读次数:0
官方文档的学习
https://pytorch.org/docs/stable/generated/torch.nn.Conv2d.html?highlight=nn%20conv2d#torch.nn.Conv2d ###1 ###2 ...
分类:其他好文   时间:2021-04-06 14:10:37    阅读次数:0
Java基础--循环结构
循环结构 while 循环 while是最基本得循环,它的结构为: while(布尔表达式){ //循环内容 } 只要布尔表达式为true,循环就会一直执行下去 public class WhileDemo01 { public static void main(String[] args) { / ...
分类:编程语言   时间:2021-04-06 14:10:11    阅读次数:0
HTML(二)基本标签
HTML(二)基本标签 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Basic Label</title> </head> <body> <!--标题标签--> <h1>一级标题</h1> <h2>二级标 ...
分类:Web程序   时间:2021-04-06 14:06:11    阅读次数:0
31. 下一个排列 + 双指针 + 思维
31. 下一个排列 LeetCode_31 题目描述 题解分析 代码实现 class Solution { public void nextPermutation(int[] nums) { int i = nums.length - 2; while(i >= 0 && nums[i] >= nu ...
分类:其他好文   时间:2021-04-06 14:03:32    阅读次数:0
STM32L4移植WolfSSL例程(下)--实验结果
我们的L4R5ZI的开发版如下: 用USB转串口FT232做连接,PG9和PG10分别为RX和TX,不对就反过来接:) 如果程序没有问题的话,我们打开如串口显示助手,配置好相关参数,可以看到如下页面: 我们可以输入't','b','l','e'执行相应遍历套件指令。 输入't',不用加回车换行,得出 ...
分类:其他好文   时间:2021-04-05 12:52:57    阅读次数:0
归并排序模板
归并排序模板 code: #include<cstdio> #include<cstring> #include<iostream> #include<algorithm> using namespace std; const int N = 1e5 + 10; typedef long long ...
分类:编程语言   时间:2021-04-05 12:52:30    阅读次数:0
python学习第三天
一 for循环 #for循环可以循环任何序列的项目 for i in range(1,10): for j in range(1,i+1): print('%s*%s=%s'%(i,j,i*j),end="") print() 二 可变不可变类型 #for循环可以循环任何序列的项目 for i in ...
分类:编程语言   时间:2021-04-05 12:49:56    阅读次数:0
实验二
1. x1, y1 = 1.2, 3.57 x2, y2 = 2.26, 8.7 print('{:-^40}'.format('输出1')) print('x1 = {}, y1 = {}'.format(x1, y1)) print('x2 = {}, y2 = {}'.format(x2, y ...
分类:其他好文   时间:2021-04-05 12:37:53    阅读次数:0
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!