Loading

上一页 1 ··· 43 44 45 46 47 48 49 50 51 ··· 76 下一页
摘要: 1014 Waiting in Line (30分) Sample Input: 2 2 7 5 1 2 6 4 3 534 2 3 4 5 6 7 Sample Output: 08:07 08:06 08:10 17:00 Sorry 思路 这道题是一个银行队列的模拟,具体处理比较复杂,要想不超 阅读全文
posted @ 2020-04-01 23:44 拾月凄辰 阅读(160) 评论(0) 推荐(0)
摘要: 1013 Battle Over Cities (25分) It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all t 阅读全文
posted @ 2020-03-31 22:59 拾月凄辰 阅读(128) 评论(0) 推荐(0)
摘要: 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 拾月凄辰 阅读(761) 评论(1) 推荐(1)
摘要: 来源: 百度百科 僵尸进程 僵尸进程 僵尸进程是当子进程比父进程先结束,而父进程又没有回收子进程,释放子进程占用的资源,此时子进程将成为一个僵尸进程。如果父进程先退出 ,子进程将会被被init进程(init是系统进程,pid为1)接管(此时该子进程称为孤儿进程),子进程退出后init进程会回收其占用 阅读全文
posted @ 2020-03-31 19:53 拾月凄辰 阅读(378) 评论(0) 推荐(1)
摘要: 转载自:https://blog.csdn.net/xx18030637774/article/details/82141889 介绍 当我们想在进程中执行另外一个函数或程序时,可以使用exec函数。进程调用exec函数,则该进程中用户空间所有代码和数据会完全被新程序替换,但是不会创建新进程,因此进 阅读全文
posted @ 2020-03-31 17:39 拾月凄辰 阅读(1597) 评论(0) 推荐(0)
摘要: 暴力、打表(记忆已经查询过的学号对应的排名,防止反复查询同一学号) 因为题目中已经规定学号是6位数,所以用int表示方便打表。 1 #include <iostream> 2 #include <stdio.h> 3 #include <string> 4 #include <algorithm> 阅读全文
posted @ 2020-03-30 22:40 拾月凄辰 阅读(120) 评论(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 拾月凄辰 阅读(217) 评论(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 拾月凄辰 阅读(118) 评论(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 拾月凄辰 阅读(11761) 评论(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 拾月凄辰 阅读(195) 评论(0) 推荐(0)
上一页 1 ··· 43 44 45 46 47 48 49 50 51 ··· 76 下一页