Xs and Os Referee 1 def checkio(game_result): 2 winner = 'D' 3 4 for row in game_result: 5 if row[0] == row[1] == row[2] and row[0] !...
分类:
其他好文 时间:
2014-08-05 10:44:19
阅读次数:
286
Problem HHelp is needed for DexterTime Limit: 3 SecondDexter is tired of Dee Dee. So he decided to keep Dee Dee busy in a game. The game he planned fo...
分类:
其他好文 时间:
2014-08-05 00:21:08
阅读次数:
315
Description
N children are sitting in a circle to play a game.
The children are numbered from 1 to N in clockwise order. Each of them has a card with a non-zero integer on it in his/her hand. The ...
分类:
其他好文 时间:
2014-08-04 17:57:27
阅读次数:
284
Problem Description
Nowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is very popular in HDU. Maybe you are a good boy, and know little about this game, so I introduce it to yo...
分类:
其他好文 时间:
2014-08-04 17:50:47
阅读次数:
158
题目链接;uva 12253 - Simple Encryption
题目大意:给定K1,求一个12位的K2,使得KK21=K2%1012
解题思路:按位枚举,不且借用用快速幂取模判断结果。
#include
#include
#include
using namespace std;
typedef long long ll;
const ll ite=(120)-1;
...
分类:
其他好文 时间:
2014-08-04 11:02:57
阅读次数:
194
HDU 2256 A Simple Math Problem (矩阵快速幂)
ACM
题目地址:HDU 2256 Problem of Precision
题意:
给出一个式子,求值。
分析:
推起来最后那步会比较难想。
具体过程见:
表示共轭只听说过复数的和图的...
这构题痕迹好明显...
跟基友开玩笑说:如果遇到这种题,推到Xn+Yn*s...
分类:
其他好文 时间:
2014-08-04 02:05:56
阅读次数:
226
题意:有一些无向边m条权值是给定的k条权值在[l,r]区间可以由你来定,一个点s1 出发一个从s2出发 问s1 出发的能不能先打到f思路:最短路。首先检测能不能赢 在更新的时候 如果对于一条边 a->b 如果dis1[a] #include#include#include#include #incl...
分类:
其他好文 时间:
2014-08-04 01:45:46
阅读次数:
264
Problem Description
Continuous Same Game is a simple game played on a grid of colored blocks. Groups of two or more connected (orthogonally, not diagonally) blocks that are the same color may be r...
分类:
其他好文 时间:
2014-08-03 23:21:29
阅读次数:
336
以调用json-simple为例java程序(CsvTest.java)import org.json.simple.JSONObject;import java.util.*;public class SplitDemo{ public static void main(String[] a...
分类:
系统相关 时间:
2014-08-03 23:12:16
阅读次数:
330
先上题目:A Simple GameTime Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/65535 K (Java/Others)Total Submission(s): 1104Accepted Submission(s): 686P...
分类:
其他好文 时间:
2014-08-03 22:49:56
阅读次数:
332