2019年3月18日

BZOJ 1026: [SCOI2009]windy数

摘要: 简单的数位dp 直接用dfs的模板写 坑点:0001是合法的,但是之前没考虑前导0导致将其判为不合法的 #include<bits/stdc++.h> using namespace std; typedef long long ll; int bit[50]; ll f[50][55]; ll d 阅读全文

posted @ 2019-03-18 19:19 solvit 阅读(153) 评论(0) 推荐(0)

并行计算上机代码

摘要: 多线程求PI: #include <stdio.h> #include <stdlib.h> #include <pthread.h> double res; typedef struct Args { long n; long begin; long step; } Args; void *cal 阅读全文

posted @ 2019-03-18 13:11 solvit 阅读(480) 评论(0) 推荐(0)

导航