Little Elephant and Magic Square CodeForces - 259B Little Elephant loves magic squares very much. A magic square is a 3?×?3 table, each cell contains ...
分类:
其他好文 时间:
2019-04-02 21:15:04
阅读次数:
180
set(CMAKE_C_FLAGS "--no_unroll --no_inline --no_tbaa --no_scheduling --endian=little --cpu=Cortex-M3 --fpu=None")set(CMAKE_DEPFILE_FLAGS_C "--dependen ...
分类:
其他好文 时间:
2019-04-02 12:53:30
阅读次数:
178
"Good man never makes girls wait or breaks an appointment!" said the mandarin duck father. Softly touching his little ducks' head, he told them a stor ...
分类:
其他好文 时间:
2019-03-27 19:37:21
阅读次数:
149
题目描述 旅行到K国的小w发现K国有着很多物美价廉的商品,他想要买一些商品。 结果一掏钱包,包里只剩下n张K国的纸币了,说起来也奇怪,K国纸币并不像其他国家一样都是1元,5元,10元…而是各种奇怪的面值,所以找零就不是很方便。 已知商店里的商品价格都是小于等于m的正整数,如果有可能存在某个商品的价格 ...
分类:
其他好文 时间:
2019-03-24 13:38:46
阅读次数:
136
题目描述 小w有m条线段,编号为1到m。 用这些线段覆盖数轴上的n个点,编号为1到n。 第i条线段覆盖数轴上的区间是L[i],R[i]。 覆盖的区间可能会有重叠,而且不保证m条线段一定能覆盖所有n个点。 现在小w不小心丢失了一条线段,请问丢失哪条线段,使数轴上没被覆盖到的点的个数尽可能少,请输出丢失 ...
分类:
其他好文 时间:
2019-03-24 12:25:19
阅读次数:
141
题面 "传送门" 设$a$的递推公式为 $$a_i=\sum_ja_jb[count(i\oplus j)]$$ 其中$\oplus$为异或,$count(i)$表示$i$的二进制中$1$的个数 给出$a_0,b$,求$a_t$,$t\leq 10^{18}$ 题解 如果我们定义$c_i=b[cou ...
分类:
其他好文 时间:
2019-03-23 22:42:20
阅读次数:
212
Problem: = "Codeforces 1139D" Analysis: = ~~After ACing E, I gave up D and spent the left 30 minutes chatting with Little Dino.~~ Let $f[n]$ be the ex ...
分类:
其他好文 时间:
2019-03-23 17:29:19
阅读次数:
244
首先纠正:题目描述中应该是dx y(这个式子本应该是从原题中证出来的) 题目描述: 给定一个平面上的一些有向边,每条边涂色费用为 $dx y$ , 其中 $d$ 为边的长度(实数), $x,y$ 为题中给定参数。环路的涂色费用为其上各边涂色费用和。找出一些环路,这些环路没有边相交,且环路涂色费用总和 ...
分类:
其他好文 时间:
2019-03-23 01:06:43
阅读次数:
132
编码相关内置方法: (1) str.encode(encoding='utf-8'):返回字符串编码,encoding指定编码方式。 >>> a = 'I love Python' >>> a.encode(encoding='utf-8') b'I love Python' >>> a.encod ...
分类:
编程语言 时间:
2019-03-22 16:51:40
阅读次数:
192
字节序(Endianness, Byte Order)指的是对于一个多字节数值,当在内存中存储该值或者在链路中传输该值时,其值所包含的多个字节的排列顺序。 在计算机科学中,一般存在两种字节序,大端字节序(Big Endian)和小端字节序(Little Endian)。大端字节序指存储时数值最高位在 ...
分类:
其他好文 时间:
2019-03-22 16:45:33
阅读次数:
130