After winning gold and silver in IOI 2014, Akshat and Malvika want to have some fun. Now they are playing a game on a grid made of n horizontal and m ...
分类:
其他好文 时间:
2019-11-03 20:34:00
阅读次数:
101
package main import ( "fmt" "math/rand" "time" ) /* ·随机生成一个三位数 ·让用户输入其猜想 ·反馈给用户:猜大了,猜小了,猜对了 ·如果没猜对就继续猜 ·如果猜对了就退出游戏 ·如果用户输入"-1"就直接退出游戏 */ func GetRando... ...
分类:
编程语言 时间:
2019-11-03 20:02:25
阅读次数:
93
0x01 this_is_flag 对!!!这就是flag 0x02 ext3 题目提示是Linux光盘,附件下载下来 在linux中挂载mount linux /mnt 找一下flagtrings linux | grep flag,发现在这个路径~root/Desktop/file/O7avZh ...
分类:
其他好文 时间:
2019-11-03 17:59:25
阅读次数:
624
Problem You are a physical education teacher, in five minutes a class from the class, you decide to get into a game. There are 100 students in our cla ...
分类:
其他好文 时间:
2019-11-03 13:03:48
阅读次数:
86
299. Bulls and Cows Easy Easy Easy You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to ...
分类:
其他好文 时间:
2019-11-02 12:04:09
阅读次数:
91
E - One-Dimensional Battle Ships CodeForces - 567D Alice and Bob love playing one-dimensional battle ships. They play on the field in the form of a li ...
分类:
其他好文 时间:
2019-10-31 23:42:16
阅读次数:
154
一:前言手机异形屏的出现,给手游自适应带来了新的麻烦。对于Game前端来说,奇葩的是,刘海屏/打孔屏/水滴屏,将来还不知道出现个什么屏,更为奇葩的是,刘海吧,大小长度不一样;打孔吧,位置不一样;水滴屏,大小不一样。SO,本篇Blog,给出了普遍的做法:将刘海,打孔,水滴全部部分去掉,不显示任何内容。当然读者可以更具不同的机型,定制的自适应异形屏。二:方案1,利用wx.getSystemInfo,可
分类:
微信 时间:
2019-10-31 12:01:31
阅读次数:
672
题意:给定n个数ai(n<=1e6,ai<=1e6),定义,并且fac(l,r)为mul(l,r)的不同质因数的个数,求 思路:可以先用欧拉筛求出1e6以内的所有质数,然后对所有ai判断,如果ai不是质数就利用唯一分解定理计算其所有质因数。然后按照顺序依次计算每个质因子的贡献。假设n=5,对质因子2 ...
分类:
其他好文 时间:
2019-10-31 10:29:35
阅读次数:
76
题意:给一列数,任选一个数,乘x,最多操作k次,问最后a[1]|a[2]|...|a[n]的最大值是多少;思路:或运算是0|0=0,1|0=1,0|1=1,1|1=1,那么每次乘一个大于等于2的数就能使最高位数增加,那么肯定是把k个x都乘在一个数上才能最大,把a[1]|...|a[n]的前后缀都找出 ...
分类:
其他好文 时间:
2019-10-28 21:20:37
阅读次数:
109
You are playing a two player game. Initially there are n integer numbers in an array and player A and B get chance to take them alternatively. Each pl ...
分类:
其他好文 时间:
2019-10-27 17:09:51
阅读次数:
88