You are given a tree with n nodes. The weight of the i-th node is wi. Given a positive integer m, now you need to judge that for every integer i in [1 ...
分类:
其他好文 时间:
2019-05-03 18:14:04
阅读次数:
163
写完帕秋莉的超级多项式于是正好贴个模板大汇总(带优化的那种...) //by Judge include define Rg register define fp(i,a,b) for(Rg int i=(a),I=(b)+1;iI; i) define ll long long using nam ...
分类:
其他好文 时间:
2019-04-19 14:46:47
阅读次数:
181
https://leetcode.com/problems/find-the-town-judge/ In a town, there are N people labelled from 1 to N. There is a rumor that one of these people is se ...
分类:
其他好文 时间:
2019-04-16 11:56:22
阅读次数:
158
struct Point{ int x1,y1,x2,y2;}A[20];int arr[20];struct Node{ int x,y;};bool judge(Point p1,Point p2){ //相交最基本的条件 if(max(p1.x1,p1.x2)<min(p2.x1,p2.x2) ...
分类:
其他好文 时间:
2019-04-13 17:43:18
阅读次数:
152
OJ Online Judge 在线判题系统 AC Accepted 通过 WA Wrong Answer 答案错误 TLE Time Limit Exceed 超时 OLE Output Limit Exceed 超过输出限制 MLE Memory Limit Exceed 超内存 RE Runt ...
分类:
其他好文 时间:
2019-04-12 13:19:50
阅读次数:
154
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 ...
[TOC] 题目描述: 在一个小镇里,按从 到 标记了 个人。传言称,这些人中有一个是小镇上的秘密法官。 如果小镇的法官真的存在,那么: 1. 小镇的法官不相信任何人。 2. 每个人(除了小镇法官外)都信任小镇的法官。 3. 只有一个人同时满足属性 1 和属性 2 。 给定数组 ,该数组由信任对 组 ...
分类:
其他好文 时间:
2019-04-09 00:21:25
阅读次数:
206
题目链接:http://poj.org/problem?id=2912 题意:给n个人,m组关系,玩石头剪刀布的游戏,n个人中除一个人judge以外,其他人属于3个group(即石头、剪刀、布),他们只能出这一个手势,而judge可以随便出,要求能否找到judge和在第几组关系时能最先找到judge ...
分类:
其他好文 时间:
2019-04-05 18:05:10
阅读次数:
123
原来OJ是装在centos上的。因为centos崩了,所以要把oj备份数据并重装。 一、备份数据 按照各位大佬的经验 1.拷贝数据库jol.sql文件 2.拷贝/home/Judge下的data文件 3.拷贝/var/www/html下的JudgeOnline文件 这里只做了1、2两步。 data文 ...
分类:
系统相关 时间:
2019-04-05 12:44:47
阅读次数:
240
第一场:2017年ccpc女生赛 分类: a) 数论&数学,a) 矩阵快速幂,a) 模拟,a) 找感觉题,a) 动态规划 题解:https://www.cnblogs.com/zhangmingzhao/p/7256603.html 第一题:Automatic Judge http://acm.hd ...
分类:
其他好文 时间:
2019-03-31 12:21:44
阅读次数:
471