码迷,mamicode.com
首页 >  
搜索关键字:int 取值范围    ( 143948个结果
494. 目标和
494. 目标和 一看数据最多才20个,直接暴力DFS感觉能过,没想到真过了o(╯□╰)o class Solution { int ans = 0; public int findTargetSumWays(int[] nums, int target) { int n = nums.length ...
分类:其他好文   时间:2021-06-07 20:19:24    阅读次数:0
数据类型
import javax.xml.bind.SchemaOutputResolver; public class demo03 { public static void main(String[] args) { //整数拓展; 进制 二进制0b 十进制 八进制0 十六进制0x int i=10; ...
分类:其他好文   时间:2021-06-07 20:12:14    阅读次数:0
变量作用域
变量作用域 类变量 加关键值static 实例变量 从属于对象;如果不自行初始化,这个类型的默认值 局部变量 必须声明和初始化值 public class Variable { static double salary =2500; //类变量 String str="hello,world!";/ ...
分类:其他好文   时间:2021-06-07 20:09:00    阅读次数:0
Redis底层数据结构
String 如果一个字符串对象保存的是整数值,并且这个整数值可以用long类型来表示,那么将会把字符串对象的编码设置为int,底层数据结构为一个整数 如果字符串对象保存的是一个字符串值,那么底层将会使用SDS(simple dynamic string)来保存。如果这个字符串值的长度小于等于32字 ...
分类:其他好文   时间:2021-06-07 20:03:51    阅读次数:0
c语言 13-1
1、 #include <stdio.h> int main(void) { FILE *fp; // 打开文件前,必须定义FILE*型指针变量。 char file[128]; printf("please input the filename: "); scanf("%s", file); // ...
分类:编程语言   时间:2021-06-07 20:01:39    阅读次数:0
练习题
#-*- coding: utf-8 -*-s1 = 'alex'print('我的名字是' + s1 +',' )i = '123a'i1 = int(i) # 字符串转化成数字,字符串必须全部由数字组成。print(i1,type(i1))i2 = 100s1 = str(i2)print(s1 ...
分类:其他好文   时间:2021-06-07 19:57:39    阅读次数:0
C++常问的Vector,map内存释放
#include <iostream>#include<string>#include <vector>#include <map>using namespace std; int main(){ vector<int> bgX{5, 10}; //方法1 bgX.erase(bgX.begin() ...
分类:编程语言   时间:2021-06-06 19:46:16    阅读次数:0
Python_redis
import redisr = redis.Redis(host = "118.xx.x.xx",password="xxxxxx*",port=xxxx,db=4)r = redis.Redis(host = "118.xx.x.xx",password="xxxxxx*",port=xxxx,d ...
分类:编程语言   时间:2021-06-06 19:33:19    阅读次数:0
Pandas常用操作 - 去重
1. 使用 drop_duplicates 去重 1.1 初始化数据 df = pd.DataFrame({'stu_name': ['Tom', 'Tony', 'Jack', 'Jack', np.nan], 'stu_age': [16, 16, 15, np.nan, 21]}) stu_n ...
分类:其他好文   时间:2021-06-06 19:31:16    阅读次数:0
第 2 场周赛
3626. 三元一次方程 签到。 暴力思路是三重枚举,可优化至两重枚举。 int n; int main() { int T; cin>>T; while(T--) { cin>>n; bool ok=false; for(int i=0;3*i<=n && !ok;i++) for(int j=0 ...
分类:其他好文   时间:2021-06-06 19:26:45    阅读次数:0
143948条   上一页 1 ... 36 37 38 39 40 ... 14395 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!