09 2018 档案

随机算法
摘要:class Solution { private: vector<int> vc; public: Solution(vector<int> nums) { vc = nums; } int pick(int target) { vector<int> tmp; int size = 0; for 阅读全文

posted @ 2018-09-25 23:51 stupid_one 阅读(154) 评论(0) 推荐(0) 编辑

24点游戏
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=1427 不传引用会TLE #include <bits/stdc++.h> using namespace std; double epx = 1e-10; int cmp = 24; bool judge(vec 阅读全文

posted @ 2018-09-25 19:47 stupid_one 阅读(219) 评论(0) 推荐(0) 编辑

链表排序
摘要:https://leetcode.com/problems/insertion-sort-list/description/ 1、归并排序: #include <bits/stdc++.h> #include "table.h" using namespace std; typedef long l 阅读全文

posted @ 2018-09-14 23:59 stupid_one 阅读(179) 评论(0) 推荐(0) 编辑

前端
摘要:在JavaScript的世界中,所有代码都是单线程执行的。 1、点击按钮,响应 <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title> javaScript </title> </meta> </head> <bo 阅读全文

posted @ 2018-09-07 10:06 stupid_one 阅读(192) 评论(0) 推荐(0) 编辑

一些常量
摘要:1、acm中1s --> 1e8 2、acm中1e6的字符串题目不能用nlogn 3、nginx管方说并发 5w/s,实际可能2w/s,然后1w个keep-alive仅需要消耗2.5MB内存 4、单位ms 5、关于为什么需要struct的字节对齐 因为:(可以用预编译命令#pragma pack(n 阅读全文

posted @ 2018-09-01 00:15 stupid_one 阅读(347) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示