摘要:
A.小林找工作 #include<bits/stdc++.h> using namespace std; const int MAXN=1e5+10; int p[MAXN]; int main() { int n,m; cin>>n>>m; for(int i=1;i<=n;i++) { scan 阅读全文
posted @ 2020-12-15 17:17
Do1phln
阅读(118)
评论(0)
推荐(0)
摘要:
A. 三角形面积 #include <bits/stdc++.h> using namespace std; int main() { double a,b,c; double ans,p,tmp; cin>>a>>b>>c; p=(a+b+c)*0.5; tmp=p*(p-a)*(p-b)*(p- 阅读全文
posted @ 2020-12-15 17:16
Do1phln
阅读(144)
评论(0)
推荐(0)
摘要:
P2031凯撒密码 #include<bits/stdc++.h> using namespace std; int main(){ string s; int d; while(cin>>s) { cin>>d; int len=s.length(); for(int i=0;i<len;i++) 阅读全文
posted @ 2020-12-15 17:14
Do1phln
阅读(125)
评论(0)
推荐(0)
摘要:
题目 给定一个数组和一个数s,在这个数组中找一个区间,使得这个区间之和等于s。 例如:给定的数组int x[14] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14};和一个s = 15。那么,可以找到的区间就应该有0到4, 3到5, 6到7.(注意这 阅读全文
posted @ 2020-12-15 17:13
Do1phln
阅读(145)
评论(0)
推荐(0)
摘要:
同样一个问题,位运算可以提高程序的运行效率。 下面讲一下关于奇偶性的判断。 常规方法 public static boolean isOdd(int i){ return i % 2 != 0; } 位运算方法 public static boolean isOdd(int i){ retu 阅读全文
posted @ 2020-12-15 17:11
Do1phln
阅读(162)
评论(0)
推荐(0)
摘要:
概念解释 PHP 反序列化漏洞又叫做 PHP 对象注入漏洞,我觉得这个表达很不直白,也不能说明根本的问题,不如我们叫他 PHP 对象的属性篡改漏洞好了(别说这是我说的~~) 反序列化漏洞的成因在于代码中的 unserialize() 接收的参数可控,从上面的例子看,这个函数的参数是一个序列化的对象, 阅读全文
posted @ 2020-12-15 17:08
Do1phln
阅读(313)
评论(0)
推荐(0)

浙公网安备 33010602011771号