上一页 1 2 3 4 5 6 7 8 9 10 ··· 15 下一页
摘要: 以前整理过有关Java的基本知识,也写了几个有关java的题目,不过发现不够完善,现在重新整合一下。 1.Java的输入与输出 java的输入是先定义一个scanner,然后用这个进行输入,并且每一种输入都有相应的输入函数,具体如下: Java的输出相较于输入来说就简单一些了。 2.大数部分 jav 阅读全文
posted @ 2018-06-04 15:29 爱国呐 阅读(4132) 评论(0) 推荐(0)
摘要: 接触了几种基础的博弈论之后,应该多多少少都听过SG函数,SG函数可以解决大多数博弈问题,当然也可以通过SG函数找规律,然后计算结果。 由于本人愚昧,一直没有体会到SG的精髓,一直半懂不懂的,然后现在终于明白了,所以记录下这个神奇的SG函数。 SG函数: 首先定义mex(minimal excluda 阅读全文
posted @ 2018-06-02 19:30 爱国呐 阅读(8255) 评论(0) 推荐(3)
摘要: Description Chiaki has n intervals and the i-th of them is [li, ri]. She wants to delete some intervals so that there does not exist three intervals a 阅读全文
posted @ 2018-04-18 10:16 爱国呐 阅读(278) 评论(0) 推荐(0)
摘要: Description Coco is a beautiful ACMer girl living in a very beautiful mountain. There are many trees and flowers on the mountain, and there are many a 阅读全文
posted @ 2018-03-28 12:05 爱国呐 阅读(286) 评论(0) 推荐(0)
摘要: Description Several days ago, a beast caught a beautiful princess and the princess was put in prison. To rescue the princess, a prince who wanted to m 阅读全文
posted @ 2018-03-10 15:58 爱国呐 阅读(288) 评论(0) 推荐(0)
摘要: Description Let us define two functions f and g on positive integer numbers. You need to process Q queries. In each query, you will be given three int 阅读全文
posted @ 2018-02-16 11:27 爱国呐 阅读(775) 评论(0) 推荐(0)
摘要: 常用头文件和一些简单函数 阅读全文
posted @ 2018-01-28 09:43 爱国呐 阅读(300) 评论(0) 推荐(0)
摘要: 题目描述 Iahub and Sorin are the best competitive programmers in their town. However, they can't both qualify to an important contest. The selection will 阅读全文
posted @ 2018-01-27 08:59 爱国呐 阅读(722) 评论(2) 推荐(0)
摘要: 好久没有整题目了,并不是没有好的题目整,只是自己懒了太懒了太懒了。。。赶紧整理几个题补一下自己的罪过。。。 Description Bo is a "Life Winner".He likes playing chessboard games with his girlfriend G.The si 阅读全文
posted @ 2018-01-26 17:13 爱国呐 阅读(365) 评论(0) 推荐(0)
摘要: 博弈可以看为找规律,不过找规律也是有先当多的套路,很久之前就接触过博弈了,不过一直没有整理,今天稍微整理一下三个基本的博弈。 一、Bash Game:同余理论 一堆n个物品,两人轮流取,每次取1至m个,最后取完者胜 基础:1 , 2, ...,m是必赢局面,m+1是必输局面递推:m+2,m+3, . 阅读全文
posted @ 2018-01-25 14:22 爱国呐 阅读(346) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 15 下一页