链接:https://codeforces.com/contest/1141/problem/A 题意: 给n和m,有两种操作:将n×2 或 n×3,求最少的乘法次数由n得到m。 不能得到时为-1。 思路: 先判断是否为整数倍。 再将倍数不断除以2和3。 最后剩下1则可以达到否则-1。 代码: ...
分类:
其他好文 时间:
2019-03-21 13:09:35
阅读次数:
207
这种题就是难者不会,会者不难。 博客讲的很详细了 代码: ...
分类:
其他好文 时间:
2019-03-21 01:16:17
阅读次数:
202
题目要求 You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 ...
分类:
其他好文 时间:
2019-03-19 10:46:49
阅读次数:
179
A-Evolution Game 题目大意:有$n$个不同的野兽,定义第$i$ 个野兽有 $i$ 个眼睛和 $h[i]$ 个角,你可以任意从中选择一个野兽进行进化,每次进化角数量必须增加,而且进化后要满足眼镜的变化量 $\triangle i \leq w$,求最多的进化次数。 题解:以$h$的值从 ...
分类:
其他好文 时间:
2019-03-18 11:55:41
阅读次数:
200
A - Switch Game Problem Description There are many lamps in a line. All of them are off at first. A series of operations are carried out on these lamp ...
分类:
其他好文 时间:
2019-03-17 18:18:02
阅读次数:
161
一个渣渣写坦克大战的步骤: 1、首先创造好一个坦克和一个GAME框架,并且坦克能够跟着键盘键位移动 案例:在我的博客文件中保存,它的名字是:tankwar0100.rar 主要解决了:1、坦克背景框 2、坦克的不断重画,并且解决了因为重画闪烁问题 3、坦克随着键盘移动问题 2、坦克能够8个方向移动, ...
分类:
编程语言 时间:
2019-03-16 20:54:20
阅读次数:
194
https://blog.csdn.net/game_jqd/article/details/51899000 使用Profiler工具分析内存占用情况 System.ExecutableAndDlls:系统可执行程序和DLL,是只读的内存,用来执行所有的脚本和DLL引用。不同平台和不同硬件得到的值 ...
分类:
编程语言 时间:
2019-03-16 12:30:49
阅读次数:
179
链接:https://codeforces.com/contest/1136/ A - Nastya Is Reading a Book - [二分] B - Nastya Is Playing Computer Games - [思维题] 题解:我只想说,这道思维题有点东西…… AC代码: ...
分类:
其他好文 时间:
2019-03-16 09:45:16
阅读次数:
181
博弈论 如果a/b =2则先手必胜,否则就对(b,a b)的情况取反 a可以整除b的时候也是必赢的 要保证a b cpp include define ll long long using namespace std; ll a,b; int main() { while(cin a b) { if ...
分类:
其他好文 时间:
2019-03-16 00:25:22
阅读次数:
214
Final Project - Escape from CS 162In this final project, you'll implement a game that combines many of the things wetalked about in class this year. T ...
分类:
其他好文 时间:
2019-03-14 20:10:23
阅读次数:
131