Loading

上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 75 下一页
摘要: scanf、printf比cin、cout速度要快,而且很多时候使用cin会超时,但scanf不会超时,建议以后都用scanf处理输入,printf处理输出。 记住以下4点建议: 1. scanf读入double类型只能用%lf,读入float类型只能用%f 2. printf对于double和fl 阅读全文
posted @ 2020-03-31 22:37 拾月凄辰 阅读(682) 评论(1) 推荐(1) 编辑
摘要: 来源: 百度百科 僵尸进程 僵尸进程 僵尸进程是当子进程比父进程先结束,而父进程又没有回收子进程,释放子进程占用的资源,此时子进程将成为一个僵尸进程。如果父进程先退出 ,子进程将会被被init进程(init是系统进程,pid为1)接管(此时该子进程称为孤儿进程),子进程退出后init进程会回收其占用 阅读全文
posted @ 2020-03-31 19:53 拾月凄辰 阅读(335) 评论(0) 推荐(1) 编辑
摘要: 转载自:https://blog.csdn.net/xx18030637774/article/details/82141889 介绍 当我们想在进程中执行另外一个函数或程序时,可以使用exec函数。进程调用exec函数,则该进程中用户空间所有代码和数据会完全被新程序替换,但是不会创建新进程,因此进 阅读全文
posted @ 2020-03-31 17:39 拾月凄辰 阅读(1396) 评论(0) 推荐(0) 编辑
摘要: 暴力、打表(记忆已经查询过的学号对应的排名,防止反复查询同一学号) 因为题目中已经规定学号是6位数,所以用int表示方便打表。 1 #include <iostream> 2 #include <stdio.h> 3 #include <string> 4 #include <algorithm> 阅读全文
posted @ 2020-03-30 22:40 拾月凄辰 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 1010 Radix (25分) Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is yes, if 6 is a decimal nu 阅读全文
posted @ 2020-03-30 21:27 拾月凄辰 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 1009 Product of Polynomials (25分) This time, you are supposed to find A×B where A and B are two polynomials. Input Specification: Each input file cont 阅读全文
posted @ 2020-03-28 22:13 拾月凄辰 阅读(104) 评论(0) 推荐(0) 编辑
摘要: ## 代码格式详解 看一个例子: ```bash #set java environment export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_79 export CLASSPATH=.:${JAVA_HOME}/lib/tools.jar:${JAVA_HOME}/li 阅读全文
posted @ 2020-03-27 11:55 拾月凄辰 阅读(10842) 评论(1) 推荐(3) 编辑
摘要: 1007 Maximum Subsequence Sum (25分) Given a sequence of K integers { N ​1 ​​ , N ​2 ​​ , ..., N ​K ​​ }. A continuous subsequence is defined to be { N 阅读全文
posted @ 2020-03-26 22:00 拾月凄辰 阅读(149) 评论(0) 推荐(0) 编辑
摘要: At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door 阅读全文
posted @ 2020-03-26 20:58 拾月凄辰 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 1.CTRL+A全选文档2.菜单-格式-字体。3.西文字体那里调成Times new roman-确定。 阅读全文
posted @ 2020-03-26 16:52 拾月凄辰 阅读(4558) 评论(0) 推荐(0) 编辑
上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 75 下一页