Problem D
FILL
There are three jugs with a volume of a, b and c liters. (a, b, and c are positive integers not greater than 200). The first and the second jug are initially empty, while the...
分类:
其他好文 时间:
2015-01-28 09:46:17
阅读次数:
275
解题思路:给定n个点,m条边,判断是否构成一个环注意到构成一个环,所有点的度数为2,即一个点只有两条边与之相连,再有就是判断合并之后这n个点是否在同一个连通块CircleTime Limit: 1 Second Memory Limit: 32768 KBYour task is so easy. ...
分类:
其他好文 时间:
2015-01-28 00:45:23
阅读次数:
365
波特率(Boud Rate)就是在串口通信中每秒能够发送的位数(bits/second)。MCS-51串行端口在四种工作模式下有不同的波特率计算方法。其中,模式0和模式2波特率计算很简单;模式1和模式3的波特率选择相同,故在此仅以工作模式1为例来说明串口通信波特率的选择。
在串行端口工作于模式1,其波特率将由计时/计数器1来产生,通常设置定时器工作于模式2(自动再加模式)。在此模式下波...
分类:
其他好文 时间:
2015-01-27 18:33:26
阅读次数:
256
取石子游戏Problem Description1堆石子有n个,两人轮流取.先取者第1次能够取随意多个,但不能所有取完.以后每次取的石子数不能超过上次取子数的2倍。取完者胜.先取者负输出"Second win".先取者胜输出"First win".Input输入有多组.每组第1行是2#include...
分类:
其他好文 时间:
2015-01-26 22:23:38
阅读次数:
259
Problem I
23 Out of 5
Input: standard input
Output: standard output
Time Limit: 1 second
Memory Limit: 32 MB
Your task is to write a program that can decide whether you can find an arithmetic ex...
分类:
其他好文 时间:
2015-01-26 17:07:04
阅读次数:
183
在The FirstDay里面学习了列表的元组的使用,今天开始学习字符串的使用。字符串的使用主要要掌握,字符串的格式化(C语言中我们应该都知道,Python和C语言差别不大),字符串的基本操作(Join,Split,Replace等和.net里面的也有很多相似点) 一.字符串的基本操作 ...
分类:
编程语言 时间:
2015-01-26 13:16:11
阅读次数:
275
题目:
Given a linked list, remove the nth node from the end of list and return its head.
For example,
Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the...
分类:
其他好文 时间:
2015-01-25 00:10:45
阅读次数:
178
uva 725 Division
Write a program that finds and displays all pairs of 5-digit numbers that between them use the digits
0 through 9 once each, such that the first number divided by the second ...
分类:
其他好文 时间:
2015-01-24 14:32:11
阅读次数:
143
Division
Write a program that finds and displays all pairs of 5-digit numbers that between them use the digits 0through 9 once each, such that the first number divided by the second is e...
分类:
其他好文 时间:
2015-01-23 18:33:20
阅读次数:
194
Problem D - Maximum Product
Time Limit: 1 second
Given a sequence of integers S = {S1, S2, ..., Sn}, you should determine what is the value of the maximum positive product involving cons...
分类:
其他好文 时间:
2015-01-23 18:27:41
阅读次数:
165