Given a non-empty array of integers, every element appears three times except for one, which appears exactly once. Find that single one. Note: Your al ...
分类:
其他好文 时间:
2019-01-10 15:30:40
阅读次数:
139
1.三维文字 三维字体文字,使用的是FontLoader,字体文件通过来facetype.js生成 2.通过canvas创建文字 3.创建2D标签文本 示例代码:https://threejs.org/examples/#css2d_label,需要注意的是,这种方式还需要使用另外一个渲染器。那么在 ...
分类:
Web程序 时间:
2019-01-10 10:51:25
阅读次数:
299
例:输入三个整数,输出最大值和最小值。 #include<stdio.h>int main(){ int a,b,c,max,min; printf("input three numbers:"); scanf("%d%d%d",&a,&b,&c); if(a>b) {max=a;min=b;} e ...
分类:
其他好文 时间:
2019-01-09 21:40:24
阅读次数:
145
#include<stdio.h>int main(){ void hanoi(int n,char one,char two,char three); int m; printf("Inout the numbers of disks:"); scanf("%d",&m); printf("The ...
分类:
其他好文 时间:
2019-01-08 19:20:59
阅读次数:
202
关于python的return用法,在stackoverflow里的问题: Python — return, return None, and no return at all Consider three functions: On the actual behavior, there is no ...
分类:
编程语言 时间:
2019-01-07 01:39:05
阅读次数:
213
Theorem 20.4 The uniform topology on \(\mathbb{R}^J\) is finer than the product topology and coarser than the box topology; these three topologies are... ...
分类:
其他好文 时间:
2019-01-05 00:14:12
阅读次数:
120
To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Programming Language, M - Mat ...
分类:
其他好文 时间:
2019-01-01 23:56:06
阅读次数:
159
整数转换英文表示 将非负整数转换为其对应的英文表示。可以保证给定输入小于 231 - 1 。 示例 1: 输入: 123 输出: "One Hundred Twenty Three" 示例 2: 输入: 12345 输出: "Twelve Thousand Three Hundred Forty F ...
分类:
其他好文 时间:
2019-01-01 17:17:19
阅读次数:
202
【题目】: 给定一个32位整数num,写两个函数分别返回num的英文与中文表达字符串 举例: num=319 英文表达字符串为:Three Hundred Nineteen 中文表达字符串为:三百一十九 num=1014 英文表达字符串为:One Thousand, Fourteen 中文表达字符串 ...
分类:
其他好文 时间:
2019-01-01 14:52:00
阅读次数:
238
题面 要求组合的方法显然我们需要对桶卷积,即设$F(x)=\sum\limits_{i=1}^{maxx}x^{cnt[i]}$,然后我们初步的先把$F^2(x)$卷出来,表示选两条边。然后我们发现如果用“两边之和大于第三边”来求,那么小于这两条边的可能不是最长的,所以应该枚举大于这两条边的来容斥 ...
分类:
其他好文 时间:
2018-12-30 20:19:01
阅读次数:
150