摘要:
A. Matrix Game 代码: 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int N = 55, M = 1; 4 typedef long long ll; 5 typedef unsigned long long u 阅读全文
摘要:
已给出A,B,C,D,E题解,F待补。(持续补题...) A. Johnny and Ancient Computer 题意:给你两个数a和b,要求将a通过数次合法操作转换为b,输出最小的操作数,若无法转换为b,则输出-1。合法操作有:乘2、4、8,除以2、4、8。(除以操作只在能被整除的情况下执行 阅读全文
摘要:
Navigation Nightmare 题目链接:virtual judge poj Farmer John's pastoral neighborhood has N farms (2 <= N <= 40,000), usually numbered/labeled 1..N. A serie 阅读全文
摘要:
Parity game Now and then you play the following game with your friend. Your friend writes down a sequence consisting of zeroes and ones. You choose a 阅读全文
摘要:
A. Yet Another Tetris Problem You are given some Tetris field consisting of nn columns. The initial height of the ii-th column of the field is aiai bl 阅读全文
摘要:
谁能告诉我怎么删除这个呀 题目链接:https://vjudge.net/article/187 1、 Max Sum Plus Plus HDU - 1024 题目链接 题目大意:给出n个数,求出m段不重复连续子串和的最大值。 (看完题目后并没有思路,于是查了博客=。=) 思路: 状态:dp[i] 阅读全文