- 博客(3)
- 收藏
- 关注
原创 在OpenMP中使用共享数组时出现时间减慢问题
#include "stdafx.h" #include <time.h> #include <windows.h> #include "omp.h" static long num_steps=100000000;//将区间[0,1]分成num_steps(N)份,即num_steps个小矩形 double step; #define NUM_THREADS 2 int _tmain(int argc, _TCHAR* argv[]) { int i; clock_t t1
2022-04-12 14:52:27
646
原创 闫氏dp分析法笔记
1. 01背包 朴素写法 #include <iostream> #include <stdio.h> using namespace std; const int N=1005; int f[N][N]; int n,m; int v[N],w[N]; int main(){ scanf("%d %d",&n,&m); for(int i=1;i<=n;i++) scanf("%d %d",&v[i],&w[i]); .
2022-04-01 16:08:18
450
1
原创 蓝桥杯混分技巧总结
蓝桥杯题型:5道结果填空+5道大题(根据通过的数据给分) 一、Excel用法 1.计算两个日期之间的天数 (1)在EXCEL的两个格子上写上要的日期 (2)点击C,在fx那里写上 =B1-A1,回车得到答案 1月1日是当年第一天,所以5月4日是当年的第124+1=125天 2.给一个日期,计算加上指定天数后的日期 3.计算某天为星期几 点击fx,选择WEEKDAY函数 填写日期的位置,选择2 二、计算器用法 1.显示进制 打开计算器,选择程序员模式 输入任意数字,左边显示对应进制 HEX
2022-03-27 18:42:21
12318
12
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅