在众多单片机中51 架构的芯片风行
很久,学习资料也相对很多,是初学的较好的选择之一。51 的编程语言常用的有二种,一
种是汇编语言,一种是C 语言。汇编语言的机器代码生成效率很高但可读性却并不强,复
杂一点的程序就更是难读懂,而C 语言在大多数情况下其机器代码生成效率和汇编语言相
当,但可读性和可移植性却远远超过汇编语言,而且C 语言还可以嵌入汇编来解决高时效
性的代码编写问题。对于开发周期来说,中大型的软件编写用C 语言的开发周期通常要小
于汇编语言很多。
In many microcontroller architecture chips 51 popular
Long learning materials is relatively a lot, is one of the better choices novice. 51 programming languages commonly used two kinds, a
Species are assembly language, one is C language. Machine assembly language code generation efficiency is high, but they are not readable strong, complex
Miscellaneous point program is even more difficult to read, but in most cases the C language code generation efficiency of their machines and assembly language
When, however readability and portability is far more than assembly language, and C can also be embedded assembler language to address the high aging
Write problematic code. For the development cycle, the medium and large software written in C language development cycle is usually smaller
Many in assembly language (2015-10-03, C++, 241KB, 下载1次)
算法题:2013腾讯编程马拉松初赛第二场(3月22日)小Q系列故事——为什么时光不能倒流
输入首先包含一个整数N,表示有N组测试用例。
接下来的N行表示N个测试用例,每行包括2个时间HH:MM:SS hh:mm:ss
HH:MM:SS表示当前的时间,hh:mm:ss表示希望倒退回去的时间。
[Technical Specification]
00<=HH<=11
00<=hh<=99
00<=MM, SS, mm, ss<=59
Sample Input
2
11:28:32 02:14:21
05:00:00 96:00:01
Sample Output
09:14:11
04:59:59
Algorithms title: 2013 Tencent programming marathon preliminary second (March 22) Q series of small stories- Why can not rewind enter first contains an integer N, N set of test cases indicated. The next N lines represent N test cases, each row including two time HH: MM: SS hh: mm: ss HH: MM: SS indicates the current time, hh: mm: ss expressed the hope that retrogression back time. [Technical Specification] 00 < = HH < = 11 00 < = hh < = 99 00 < = MM, SS, mm, ss < = 59 Sample Input 2 11:28:32 02:14:21 05:00:00 96 : 00:01 Sample Output 09:14:11 04:59:59 (2014-04-16, C++, 256KB, 下载1次)