
C语言
文章平均质量分 64
Genshin_Doge
这个作者很懒,什么都没留下…
展开
-
用C/C++语言写的一段恶意代码供大家参考,切勿运行和传播,读懂原理即可
Chapter 1 Introduction to the Malicious CodeThe malicious code can delete all the txt files in local disk E, all the dll files in local disk C and all the c files in local disk D. For the sake of ...原创 2020-03-27 22:19:42 · 1061 阅读 · 2 评论 -
PTA Cars on Campus (20point(s))
Exercise Description:Zhejiang University has 8 campuses and a lot of gates. From each gate we can collect the in/out times and the plate numbers of the cars crossing the gate. Now with all the inform...原创 2019-12-30 18:03:28 · 268 阅读 · 0 评论 -
PTA 7-1 最大子列和问题(C语言实现)
题目描述:给定K个整数组成的序列{ N1, N2 , …, NK },“连续子列”被定义为{ Ni , Ni+1 , …, Nj },其中 1≤i≤j≤K。“最大子列和”则被定义为所有连续子列元素的和中最大者。例如给定序列{ -2, 11, -4, 13, -5, -2 },其连续子列{ 11, -4, 13 }有最大的和20。现要求你编写程序,计算给定整数序列的最...原创 2019-10-10 11:53:25 · 814 阅读 · 0 评论 -
PTA Pop Sequence(in C)
Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, …, N and pop randomly. You are supposed to tell if a given sequence of numbers is a possible pop sequence of the...原创 2019-10-11 10:49:10 · 258 阅读 · 0 评论 -
pta后缀表达式计算
codeElementType EvalPostfix( char *expr ){ double a[100]; char b[100]; int i=0,k=0; int num = 0; while (expr[i]!='\0') { int j=0; while (expr[i]==' ') ...原创 2019-10-11 11:17:58 · 1368 阅读 · 0 评论