给定两个数 $d \le 500$ 和 $s \le 5000$,求最小的 $n$ 使得 $d|n$ 并且 $n$ 的各位数字之和为 $s$。 ...
分类:
其他好文 时间:
2020-07-16 21:11:17
阅读次数:
57
定义: 可变类型定义:变量值改变但是变量地址不会改变 (Set(集合)List(列表)Dictionary(字典)) 不可变类型定义:变量值改变,变量地址必须改变(Number(数值)String(字符串)Tuple(元组)) 举例说明: 可变类型举例(代码如下): list1 = [1, 2, 3 ...
分类:
编程语言 时间:
2020-07-16 21:03:21
阅读次数:
65
1 <html lang="en"> 2 3 <head> 4 <meta charset="UTF-8"> 5 <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maxim ...
分类:
Web程序 时间:
2020-07-16 18:24:38
阅读次数:
73
题目链接:https://pintia.cn/problem-sets/994805342720868352/problems/994805363914686464 模拟题,新改的测试数据需要long double型,如果测试点3无法通过,可以参考以下代码: #include<bits/stdc++ ...
分类:
其他好文 时间:
2020-07-16 12:08:19
阅读次数:
60
The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Now your job is to find the total ...
分类:
其他好文 时间:
2020-07-16 12:06:09
阅读次数:
75
题意:E、Maximum Subsequence Value 题意: 给你n 个元素,你挑选k个元素,那么这个 k 集合的值为 ∑2i,其中,若集合内至少有 max(1,k?2)个数二进制下第 i 位为 1,则第 i 位有效,求一个集合可以得到的最大值。 题解: 应该是一种贪心 当k==3的时候,那 ...
分类:
其他好文 时间:
2020-07-16 12:01:31
阅读次数:
44
private static class ParameterizedTypeTest<T extends Number> { private List<T> list = null; public static void main(String[] args) throws NoSuchFieldE ...
分类:
其他好文 时间:
2020-07-16 11:48:00
阅读次数:
52
##基本查看 查看端口,得到连接端口为 0xd3d,转换后为 3389: REG QUERY "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /V PortNumber ...
Description A balanced number is a non-negative integer that can be balanced if a pivot is placed at some digit. More specifically, imagine each digit ...
分类:
其他好文 时间:
2020-07-16 00:05:52
阅读次数:
79
1. typescript 中的declare 表示声明 一个类或接口后,可以不引入既可以被编译器识别,做为类型使用 如: 在 a.ts 中 定义了 declare class A{ name:string; age:number; } 在b.ts 中可以使用 let a:A = {name:"12 ...
分类:
其他好文 时间:
2020-07-15 23:48:10
阅读次数:
68