码迷,mamicode.com
首页 >  
搜索关键字:long long    ( 19145个结果
类的转换
类型转换 public class 类的转换 { public static void main(String[] args) {? /*类型转换 低 高 byte,short,char-int-long-float-double 高到低强制转换,低到高自动转换 */? //强制转换? int a ...
分类:其他好文   时间:2021-03-16 14:07:25    阅读次数:0
java基础
基本类型 整型:byte、short、int、long 浮点型:float、double 字符型:char 布尔型:boolean(只有两个值true与false) 运算符: 1.算术运算符 +、-、*、/、%(求余)、++(自增1)、--(自减1) %用来求余数(取模) ++a(--a)与a++( ...
分类:编程语言   时间:2021-03-16 13:58:27    阅读次数:0
[哥俩好数字] ADPC
1 #include <iostream> 2 using namespace std; 3 4 long long f(int x ) 5 { 6 long long tot = 0; 7 while(x) 8 { 9 tot += x % 10; 10 x /= 10; 11 } 12 retu ...
分类:其他好文   时间:2021-03-16 13:51:43    阅读次数:0
P1782 旅行商的背包
#include <cmath> #include <queue> #include <cstdio> #include <vector> #include <cstring> #include <iostream> #include <algorithm> #define int long lon ...
分类:其他好文   时间:2021-03-16 13:45:35    阅读次数:0
[POI2005]BAN-Bank Notes
#include <cmath> #include <queue> #include <cstdio> #include <vector> #include <cstring> #include <iostream> #include <algorithm> #define ll long long ...
分类:其他好文   时间:2021-03-16 13:45:15    阅读次数:0
1143. 最长公共子序列1143. 最长公共子序列 + 动态规划 + LCS
1143. 最长公共子序列 LeetCode_1143 题目描述 题解分析 求最长公共子序列主要需要考虑两种情况。 第一种是当前位置的两个字符相同,那么当前最长公共子串就是dp[i-1][j-1]+1。 第二种是当前位置的两个字符不同,那么当前最长公共子串长度就是两个串各退一个字符后的最大长度。 代 ...
分类:其他好文   时间:2021-03-16 11:55:59    阅读次数:0
Reactive Spring实战 -- 响应式Redis交互
本文分享Spring中如何实现Redis响应式交互模式。 本文将模拟一个用户服务,并使用Redis作为数据存储服务器。 本文涉及两个java bean,用户与权益 public class User { private long id; private String name; // 标签 priv ...
分类:编程语言   时间:2021-03-16 11:44:04    阅读次数:0
基础知识复习 (二) 数据类型转换,运算符和流程控制语句
一,数据类型转换 (1),自动类型转换: 1. 特点:代码不需要进行特殊处理,自动完成。 2. 规则:数据范围从小到大。 3.转换规则:范围小的类型向范围大的类型提升, byte、short、char 运算时直接提升为 int 。 byte、short、char‐‐>int‐‐>long‐‐>flo ...
分类:其他好文   时间:2021-03-15 11:23:32    阅读次数:0
力扣--最长公共前缀
最长公共前缀 Category Difficulty Likes Dislikes algorithms Easy (39.25%) 1495 - 编写一个函数来查找字符串数组中的最长公共前缀。 如果不存在公共前缀,返回空字符串 ""。 示例 1: 输入:strs = ["flower","flow ...
分类:其他好文   时间:2021-03-15 11:21:15    阅读次数:0
LRU代码实现
#include<bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> PII; #define ls l,mid,rt<<1 #define rs mid+1,r,rt<<1|1 const ...
分类:其他好文   时间:2021-03-15 11:08:22    阅读次数:0
19145条   上一页 1 ... 14 15 16 17 18 ... 1915 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!