内存限制:256 MiB 时间限制:1000 ms 标准输入输出 题目类型:传统 评测方式:Special Judge 上传者: 匿名 网络流 最大流 屠龙宝刀点击就送 #include <cstring> #include <cstdio> #include <queue> #define N 6 ...
分类:
其他好文 时间:
2017-09-15 22:38:29
阅读次数:
238
Initially, there is a Robot at position (0, 0). Given a sequence of its moves, judge if this robot makes a circle, which means it moves back to the or ...
分类:
其他好文 时间:
2017-09-13 14:03:26
阅读次数:
94
#include<bits/stdc++.h> using namespace std;int n,m,mp[1001][1001],s[1001]; bool judge[1001]={0}; //judge表示判断点是否有用过,s[i]表示1到点i的最短路径,mp表示两点的距离int main( ...
分类:
其他好文 时间:
2017-09-11 18:01:02
阅读次数:
121
Initially, there is a Robot at position (0, 0). Given a sequence of its moves, judge if this robot makes a circle, which means it moves back to the or ...
分类:
其他好文 时间:
2017-09-08 16:19:19
阅读次数:
155
Destroying The Graph Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 8503 Accepted: 2753 Special Judge Description Alice and Bob play the f ...
分类:
其他好文 时间:
2017-09-08 13:18:00
阅读次数:
154
Initially, there is a Robot at position (0, 0). Given a sequence of its moves, judge if this robot makes a circle, which means it moves back to the or ...
分类:
其他好文 时间:
2017-09-07 17:07:00
阅读次数:
210
题目描述 把只包含因子2、3和5的数称作丑数(Ugly Number)。例如6、8都是丑数,但14不是,因为它包含因子7。 习惯上我们把1当做是第一个丑数。求按从小到大的顺序的第N个丑数。 思路:第一种方法就是暴力求解方法。 class Solution { public: bool judge(i ...
分类:
其他好文 时间:
2017-09-07 13:22:56
阅读次数:
137
根据需求 分析一下对象,可分析出:玩家对象(Player)、计算机对象(Computer)、裁判对象(Judge)。 玩家出拳由用户控制,使用数字代表:0石头、1剪子、2布 计算机出拳由计算机随机产生 裁判根据玩家与计算机的出拳情况进行判断输赢 ...
分类:
移动开发 时间:
2017-09-07 01:00:08
阅读次数:
243
Solution A: 1.Create a array store the result. 2.Create a object to store info of no- repeat element. 3.Take out the element of array, and judge wheth ...
分类:
编程语言 时间:
2017-09-05 16:55:40
阅读次数:
113
Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a word to be right when one of ...