地址 https://www.acwing.com/solution/leetcode/content/6340/ 题目描述给你一个整数数组 nums,请你找出并返回能被三整除的元素最大和。 算法1最后数组和 只有三种情况 1 除以3余0 直接返回2 除以3余1 那么要么减少一个除以3余1的数字 或 ...
分类:
其他好文 时间:
2019-11-17 14:41:44
阅读次数:
158
本文基于three.js实现特定容器的粒子特效效果,支持用户传入特定的dom对象以及粒子颜色。 效果图 移入库 <script src="jquery-1.11.3.min.js" type="text/javascript"> </script> <script src="three.min.js ...
分类:
Web程序 时间:
2019-11-17 12:34:42
阅读次数:
112
链接: https://vjudge.net/problem/LightOJ 1282 题意: You are given two integers: n and k, your task is to find the most significant three digits, and least ...
分类:
其他好文 时间:
2019-11-13 09:19:03
阅读次数:
95
Map map=new HashMap(); map.put("1", "one"); map.put("2","two"); map.put("3", "three"); map.put("4", "four"); map.put("5", "five"); map.put("6", "six") ...
分类:
编程语言 时间:
2019-11-09 22:10:47
阅读次数:
80
D. Bad Luck Island The Bad Luck Island is inhabited by three kinds of species: r rocks, s scissors and p papers. At some moments of time two random in ...
分类:
其他好文 时间:
2019-11-09 21:59:21
阅读次数:
85
1.字典的定义方式有以下: a=dict(one=1,two=2,three=3) b={'one':1,'two':2,'three':3} c=dict(zip(['one','two','three'],[1,2,3])) d=dict([('two',2),('one',1),('three ...
分类:
编程语言 时间:
2019-11-09 00:13:18
阅读次数:
87
链接: https://codeforces.com/gym/102394/problem/I 题意: DreamGrid has an interesting permutation of 1,2,…,n denoted by a1,a2,…,an. He generates three sequ ...
分类:
其他好文 时间:
2019-11-05 13:52:03
阅读次数:
124
由于Pandas的索引比较复杂,常常在使用过程中容易搞混,所以整理一份关于索引的查找、排序、去重的总结文档。 a b c one 1 4 7 two 2 5 8 three 3 6 9 1.Series通过索引查找 可用Index ,也可用数字下标 2.DataFrame通过索引查找 (1) 直接通 ...
分类:
编程语言 时间:
2019-11-04 19:35:03
阅读次数:
84
To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C Programming Language, Mathematics ...
分类:
其他好文 时间:
2019-11-03 20:16:25
阅读次数:
79
1.Three.JS我的demo版本1 <!DOCTYPE html> <html> <head> <title>My first three.js app</title> <script src="//apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"> ...
分类:
Web程序 时间:
2019-11-03 10:36:41
阅读次数:
91