。。
原创 2022-09-02 22:20:07
104阅读
纯逻辑
原创 2022-06-07 21:13:28
213阅读
On a 2x3 board, there are 5 tiles represented by the integers 1 through 5, and an empty square represented by 0. A move consists of choosing 0 and a 4
转载 2019-07-17 14:05:00
197阅读
2评论
ich contained 24 small squares of equal size. A unique
原创 2022-11-28 18:25:59
391阅读
2017-08-06 20:49:38 writer:pprp 三种操作: 1、MUI -> MUIUI 2、MUUU -> MU 3、MUIII -> MUU 分析:有两个操作:将所有的U都换成I对I的个数进行判断; 1的操作是将这个个数乘以2 2/3操作综合起来相当于可以-6 于是可以计算出来I
原创 2021-12-28 15:19:34
268阅读
int ans[10000005]; int main() { int n,m; while(scanf("%d %d",&n,&m)!=EOF) { for(int i=1;i<=n;i++) scanf("%d",&a[i]); sort(a+1,a+n+1); int con=0;
原创 2022-11-07 15:26:06
82阅读
Lele 最近上课的时候都很无聊,所以他发明了一个数字游戏来打发时间据第一行包含两个整数 N和M(0&
原创 2022-11-07 14:05:05
31阅读
A hard puzzle Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
原创 2023-05-05 20:23:39
48阅读
以上,8--puzzle转化为了15--puzzle,状态数增加了,游戏的难度也加大了,AI也更加具有挑战性。   现在,我们的PUZZLE的目标状态变成了如下的情况,游戏的规模由3*3变成了4*4,这么一变不得了,状态数由O(9!)变成了O(16!),由于n!的增长速率在NP中都是变态的,所以,即使是从9增加到了16,规模都会大许多,这样的话,优化的难度也大大增加了。 
。。
原创 2022-07-17 00:33:13
183阅读
题目大意:5x5的拼图,有一个空缺,输入拼图,在输入指令,ABLR,输出最后的拼图,如果遇到不能移动,就
原创 2021-12-01 16:19:44
152阅读
Ignatius’s puzzleTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 12862 Accepted Submission(s): 9046Problem DescriptionIgnatius is poor at...
原创 2021-06-11 10:19:10
121阅读
Problem DescriptionFill thefollowing 8 circles with digits 1~8,with each number exactly once .Conntcted circles cannot be filled with two consecuti...
转载 2016-04-11 09:50:00
78阅读
2评论
Problem DescriptionFill thefollowing 8 circles with digits 1~8,with each number exactly once .Conntcted circles cannot be filled with two consecuti...
转载 2016-04-11 09:50:00
67阅读
2评论
Given an array arr[] of n integers, construct a Product Array prod[] (of same size) such that prod[i] is equal to the product of all the elements of a...
转载 2014-07-15 07:01:00
100阅读
2评论
最近给8岁的娃买了本复杂迷宫的图书,发现通过微信视频来传授技巧是不太方便的。于是决定写下本
原创 2022-05-23 11:32:33
2486阅读
。。
原创 2022-06-19 08:36:24
59阅读
。。
原创 2022-09-03 01:13:52
188阅读
。。
原创 2022-10-03 08:33:44
113阅读
第一印象就是题目好长啊…… 据说是ACM/I...
转载 2016-01-10 21:43:00
106阅读
2评论
  • 1
  • 2
  • 3
  • 4
  • 5