是一个父类Entity,父类中包含的成员有坐标XY以及移动函数move #include<iostream> class Entity { public: float X,Y; void Mive(float xa,float ya) { X+=xa; Y+=ya; } }; class Playe ...
分类:
其他好文 时间:
2020-04-11 15:45:59
阅读次数:
64
C. Game with Chips time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Petya has a rectangula ...
分类:
其他好文 时间:
2020-04-11 13:14:22
阅读次数:
62
migrate 英[ma??ɡre?t] v.(随季节变化) 迁徙; 移居; migr=move -ate,动词后缀 immigrate 英[??m?ɡre?t] v.从外地移入,移居入境 immigrant n. 侨民 emigrate 英[?em?ɡre?t] v. 移居国外 emigrant ...
分类:
其他好文 时间:
2020-04-11 09:59:29
阅读次数:
72
一、题目说明 题目283. Move Zeroes,给定一组数,将该组数中的0移动末尾,其他数据相对位置不变。 二、我的解答 性能 ...
分类:
其他好文 时间:
2020-04-11 09:33:08
阅读次数:
50
linux下zip_unzip详解命令列表:zip -q (quiet) -r (recursive) -0(level0-level9) -e (encrypt) -u (update) -m (move into zipfile delete original-Source files) unz ...
分类:
系统相关 时间:
2020-04-10 22:51:47
阅读次数:
146
单向循环链表: 单链表的一个变形是单向循环链表,链表中最后一个节点的next域不再为None,而是指向链表的头节点。 操作: is_empty() 判断链表是否为空 length() 返回链表的长度 travel() 遍历 add(item) 在头部添加一个节点 append(item) 在尾部添加 ...
分类:
其他好文 时间:
2020-04-09 12:45:25
阅读次数:
92
KMP算法学习 KMP中用到的函数详解 1. prefix_table() 2. move_prefix_table() 3. kmp_search() ...
分类:
编程语言 时间:
2020-04-08 22:46:51
阅读次数:
76
原题点这里 bfs可以实现。这里注意的是,机器人从00出发,我们只要向右,向下走就可以了 public static int movingCount(int m, int n, int k) { int[] dx=new int[] {-1,1,0,0}; int[] dy = new int[]{ ...
分类:
其他好文 时间:
2020-04-08 21:00:42
阅读次数:
77
No.36 今日概要 协程 gevent模块 asyncio模块 内容回顾 1.锁 互斥锁 一把锁不能在一个线程中连续 开销小 递归锁 一把锁可以在一个线程中连续 多次, 多少次就 多少次。 开销大 死锁现象 在线程中陷入阻塞并且永远无法结束阻塞的情况 形成原因 多把锁 + 交替使用 互斥锁在一个线 ...
分类:
其他好文 时间:
2020-04-07 22:14:25
阅读次数:
67
Eight Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 41040 Accepted: 16901 Special Judge Description The 15-puzzle has been around for ove ...
分类:
其他好文 时间:
2020-04-07 20:40:18
阅读次数:
86