码迷,mamicode.com
首页 >  
搜索关键字:roman to integer    ( 15811个结果
Door Frames CodeForces - 910B
题目 Petya has equal wooden bars of length n. He wants to make a frame for two equal doors. Each frame has two vertical (left and right) sides of length ...
分类:其他好文   时间:2020-11-30 16:00:25    阅读次数:6
Java的比较器Comparable与Comparator
在Java中有两个比较器:Comparable、Comparator 对于Integer、Double等等类型,可以直接对他们进行比较,因为已经实现了比较的方式,然而在平时常常会面临需要对集合进行排序的情况,这种情况下我们需要人工定义Java比较器,告诉程序两个对象如何比较大小。 Comparabl ...
分类:编程语言   时间:2020-11-27 11:09:51    阅读次数:9
MYSQL--2
MySQL数据库中,常用的数据类型 类型名称 说明 int(integer) 整数类型 double 小数类型 decimal(m,d) 指定整数位与小数位长度的小数类型 date 日期类型,格式为yyyy-MM-dd,包含年月日,不包含时分秒 datetime 日期类型,格式为yyyy-MM-dd ...
分类:数据库   时间:2020-11-27 10:55:23    阅读次数:13
LeetCode1394-找出数组中的幸运数
非商业,LeetCode链接附上: https://leetcode-cn.com/problems/find-lucky-integer-in-an-array/ 进入正题。 题目: 在整数数组中,如果一个整数的出现频次和它的数值大小相等,我们就称这个整数为「幸运数」。 给你一个整数数组 arr, ...
分类:编程语言   时间:2020-11-26 15:13:13    阅读次数:5
Delphi TWebBrowser[6] 获取网页所有链接(元素)
Delphi TWebBrowser[6] 获取网页所有链接(元素) var elem: IHTMLElement; coll: IHTMLElementCollection; i: integer; url, title: string; begin coll := (WebBrowser1.Do ...
分类:Windows程序   时间:2020-11-26 14:52:04    阅读次数:13
Java 遍历map的四种方法
public static void main(String[] args) { // 循环遍历Map的4中方法 Map<Integer, Integer> map = new HashMap<Integer, Integer>(); map.put(1, 2); // 1. entrySet遍历, ...
分类:编程语言   时间:2020-11-25 12:43:29    阅读次数:8
29.shell脚本正整数加减乘除计算
思路:函数先计算数值加减乘除,case赋值输出对应的加减乘除#!/bin/bashadd(){add=$[$1+$2]echo"outcome:$1+$2=$add"}minus(){min=$[$1-$2]echo"outcome:$1-$2=$min"}multiply(){mult=$[$1*$2]echo"outcome:$1x$2=$mult"}divide(){div=$[$1/$2]
分类:系统相关   时间:2020-11-20 11:18:50    阅读次数:15
ThreadLocal面试知识点总结
1 怎么new出来一个ThreadLocal 1 private ThreadLocal<Integer> num=new ThreadLocal<Integer>(){ 2 public Integer initialValue(){ 3 return 0; 4 } 5 }; 2 实现 initi ...
分类:其他好文   时间:2020-11-17 12:50:01    阅读次数:8
26.Set
1.Set集合 1.1Set集合概述和特点【应用】 可以去除重复 存取顺序不一致 没有带索引的方法,所以不能使用普通for循环遍历,也不能通过索引来获取,删除Set集合里面的元素 1.2Set集合的使用【应用】 存储字符串并遍历 package com.itheima.myset; import j ...
分类:其他好文   时间:2020-11-17 12:49:44    阅读次数:7
leetcode 1283. Find the Smallest Divisor Given a Threshold
Given an array of integers nums and an integer threshold, we will choose a positive integer divisor and divide all the array by it and sum the result ...
分类:其他好文   时间:2020-11-13 13:21:44    阅读次数:33
15811条   上一页 1 ... 20 21 22 23 24 ... 1582 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!