纯粹转载记录一下解决方案。原文: http://ask.xmodulo.com/fix-broken-x11-forwarding-ssh.html 简述一下两种解决方案: * 修改/etc/ssh/sshd_config,增加``X11UseLocalhost no`` * 修改/etc/ssh/sshd_config,增...
分类:
其他好文 时间:
2015-03-30 14:44:58
阅读次数:
228
题意:给出n个珠子,珠子颜色分为两半,分别用1到50之间的数字表示,现在给出n个珠子分别的颜色,问是否能够串成一个环。即为首尾相连,成为一个回路判断是否构成一个环,即判断是否为欧拉回路,只需要判断度数是不是偶数就可以了(这道题目给出的珠子是在一个连通块上的,所以不用考虑连通)然后输出结果要逆序输出,...
分类:
其他好文 时间:
2015-03-16 14:23:09
阅读次数:
152
On a broken keyboard, some of the keys are worn out. So when you type some sentences, the characters corresponding to those keys will not appear on sc...
分类:
其他好文 时间:
2015-03-13 22:11:53
阅读次数:
256
beads解题报告—— icedream61 博客园(转载请注明出处)--------------------------------------------------------------------------------------------------------------...
分类:
其他好文 时间:
2015-03-08 11:41:59
阅读次数:
175
n只有350,所以我们可以直接枚举每个点作为打断点,然后再统计其左右同颜色珠子的最大值,然后取这些最值中的最大值。代码如下:/*
ID: 15674811
LANG: C++
TASK: beads
*/#include
#include
#include
#include
using namespace std;int mai...
分类:
其他好文 时间:
2015-03-05 14:46:09
阅读次数:
117
Problem Description
Give you n ( n
How many kinds of necklaces total have.(if two necklaces can equal by rotating ,we say the two necklaces are some).
For example 0110 express a necklace, you ca...
分类:
其他好文 时间:
2015-03-03 15:20:26
阅读次数:
167
这道题目拖了好几天,因为鄙人有两大天敌——链表和树TUT看了这个题材知道原来链表可以不用指针写,不过原理也是一样的,相当于是用数组模拟了个链表而不实用结构体,结构体里的指针就换成了两个变量cur和last了。这道题目本来测出来非常奇怪和合因为UVA AC HDU TLE SPOJ RE我正在奇怪,才发现同名的不同题目有三道TUT
题目的详解已经写在了注释里,上代码:
#include
#inc...
分类:
其他好文 时间:
2015-03-01 17:09:15
阅读次数:
178
SSH "Write failed:Broken pipe"超时相关问题修复...
分类:
其他好文 时间:
2015-02-22 17:22:05
阅读次数:
167
Problem Description
Give you n ( n < 10000) necklaces ,the length of necklace will not large than 100,tell me
How many kinds of necklaces total have.(if two necklaces can equal by rotating ,we say th...
分类:
其他好文 时间:
2015-02-17 23:37:11
阅读次数:
143
On a broken keyboard, some of the keys are worn out. So when you type some sentences, the characters corresponding to those keys will not appear on sc...
分类:
其他好文 时间:
2015-02-14 16:08:30
阅读次数:
177