We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have to guess which number I picked. Every time you guess wron ...
分类:
其他好文 时间:
2019-02-11 12:13:55
阅读次数:
167
题目链接 紫书例题。 首先附上我第一次bfs+剪枝TLE的版本: 1 #include<bits/stdc++.h> 2 3 using namespace std; 4 typedef long long ll; 5 const int N=24+2,inf=0x3f3f3f3f; 6 const ...
分类:
其他好文 时间:
2019-02-09 13:19:10
阅读次数:
252
background: Philip likes to play the QQ game of Snooker when he wants a relax, though he was just a little vegetable-bird. Maybe you hadn't played tha ...
分类:
其他好文 时间:
2019-02-08 23:11:17
阅读次数:
184
Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maxim ...
分类:
其他好文 时间:
2019-02-08 18:35:11
阅读次数:
152
Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maxim ...
分类:
其他好文 时间:
2019-02-07 17:51:36
阅读次数:
159
最近闲来无事,花了一天多的时间写了一个小游戏,虽然说游戏本身很无聊吧,但是自己也从这个过程中学到了许多东西。。。分享一下。 代码内容自行理解吧。。。 层次结构: 1 package cn.sxt.game; 2 3 import java.awt.Color; 4 import java.awt.F ...
分类:
编程语言 时间:
2019-02-06 19:58:14
阅读次数:
216
"Quad Tiling" Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 5008 Accepted: 2269 Description Tired of the Tri Tiling game finally, Michael ...
分类:
其他好文 时间:
2019-02-06 19:47:31
阅读次数:
135
D. Game with modulo 题目链接:https://codeforces.com/contest/1104/problem/D 题意: 这题是一个交互题,首先一开始会有一个数a,你最终的目的是要将它猜出来。 每次询问会输出"? x y",然后有: "x" (without quotes ...
分类:
其他好文 时间:
2019-02-05 10:37:46
阅读次数:
243
题目描述 题解: 树上删边。 对于奇数长度的环,可以看做一条边。 对于偶数长度的环,可以看做什么都没有。 没有特别好的解释…… 代码: ...
分类:
其他好文 时间:
2019-02-04 15:29:53
阅读次数:
178
题目描述 题解: 树上删边。 $SG[u]^=SG[son[u]]$ 代码: ...
分类:
其他好文 时间:
2019-02-04 15:29:41
阅读次数:
193