码迷,mamicode.com
首页 >  
搜索关键字:numbers    ( 7657个结果
参数的分类
可变参数(可以不传该参数) #参数numbers接收到的是一个tuple def calc(*numbers): sum = 0 for n in numbers: sum = sum + n * n return sum 关键字参数 def person(name, age, **kw): pri ...
分类:其他好文   时间:2020-04-02 11:52:40    阅读次数:120
412. Fizz Buzz
Problem : Write a program that outputs the string representation of numbers from 1 to n. But for multiples of three it should output “Fizz” instead of ...
分类:其他好文   时间:2020-04-01 01:01:58    阅读次数:55
Lock锁的使用
在Java多线程中,可以使用synchronized关键字实现线程之间的同步互斥,在jdk1.5后新增的ReentrantLock类同样可达到此效果,且在使用上比synchronized更加灵活。观察ReentrantLock类可以发现其实现了Lock接口public class Reentrant ...
分类:其他好文   时间:2020-03-31 21:15:26    阅读次数:99
国际互联网的管理机构--ICANN
国际互联网的管理机构--ICANN 当从RIR中拿到ASN和IP段之后,就可以通过BGP协议将此段IP地址广播到网通、电信等ISP,为什么通过BGP能广播IP到ISP?因为能做BGP的最起码是IDC机房才行。由于AS和BGP都关系,一个IP可能被广播或者隧道到别的地方 中国的运营商主要负责电话通讯, ...
分类:其他好文   时间:2020-03-31 14:19:07    阅读次数:351
1100 Mars Numbers
People on Mars count their numbers with base 13: Zero on Earth is called "tret" on Mars. The numbers 1 to 12 on Earth is called "jan, feb, mar, apr, m ...
分类:其他好文   时间:2020-03-30 15:49:03    阅读次数:81
414. Third Maximum Number
Given a non-empty array of integers, return the third maximum number in this array. If it does not exist, return the maximum number. The time complexi ...
分类:其他好文   时间:2020-03-30 12:40:30    阅读次数:66
leetcode 之digit
leetcode 1067. Digit Count in Range leetcode 233. Number of Digit One leetcode 902. Numbers At Most N Given Digit Set leetcode 1088. Confusing Number ...
分类:其他好文   时间:2020-03-30 09:44:59    阅读次数:66
deepin环境安装nodejs
下载 下载地址:http://nodejs.cn/download/current/ 选择适合版本 下载对应的.xz文件(node-v13.12.0-linux-x64.tar.xz) 解压到目录/usr/local/ 创建软链,在任意目录都可以使用 sudo ln -s /usr/local/no ...
分类:Web程序   时间:2020-03-29 19:32:27    阅读次数:316
Codeforces Global Round 7
A. Bad Ugly Numbers 题意:找一个n位的正数,使得它的每一位都不能整除这个数。 思路:构造2333...这样的序列即可。 1 #include<bits/stdc++.h> 2 #define LL long long 3 #define dl double 4 void rd(i ...
分类:其他好文   时间:2020-03-29 17:55:13    阅读次数:72
2062 Subset sequence
Problem Description Consider the aggregate An= { 1, 2, …, n }. For example, A1={1}, A3={1,2,3}. A subset sequence is defined as a array of a non-empty ...
分类:其他好文   时间:2020-03-29 15:26:11    阅读次数:73
7657条   上一页 1 ... 26 27 28 29 30 ... 766 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!