码迷,mamicode.com
首页 >  
搜索关键字:smart scan    ( 9037个结果
2020 BIT冬训-二分三分快速幂矩阵 L - Decode the Strings HDU - 2371
Problem Description Bruce Force has had an interesting idea how to encode strings. The following is the description of how the encoding is done:Let x1 ...
分类:其他好文   时间:2021-02-19 13:18:41    阅读次数:0
for循环求n个数阶乘的和
#include<stdio.h>int main() { int ret = 1; int n = 0; int i = 0; int sum = 0; printf("请输入:\n"); scanf("%d", &n);\\输入n的值 for (i = 1; i <= n; i++) { ret ...
分类:其他好文   时间:2021-02-17 15:11:38    阅读次数:0
Smart Pointers
A pointer is a general concept for a variable contains an address in memory. Smart pointers are data structures that not only act like a pointer but a ...
分类:其他好文   时间:2021-02-16 12:42:23    阅读次数:0
1058 A+B in Hogwarts (20 分)
不开long long见祖宗。 struct Node { LL galleon,sickle,knut; }a,b; int main() { scanf("%d.%d.%d",&a.galleon,&a.sickle,&a.knut); scanf("%d.%d.%d",&b.galleon,& ...
分类:其他好文   时间:2021-02-16 12:33:27    阅读次数:0
java递归思想
Java递归 递归就是方法自己调用自己 递归构成 递归头:什么时候不调用自身方法。如果没有头,将陷入死循环。 递归体:什么时候需要调用自身方法。 eg: 用递归实现阶乘 package method; import java.util.Scanner; public class Recoursion ...
分类:编程语言   时间:2021-02-16 12:01:28    阅读次数:0
AT4995-[AGC034E] Complete Compress【树形dp】
正题 题目链接:https://www.luogu.com.cn/problem/AT4995 题目大意 $n$个点的一棵树,上面有一些棋子,每次可以选择两个棋子移动到他们之间的路径上相邻的点上,求最少多少步能移动到一个点上。 \(n\in[1,2000]\) 解题思路 如果固定最终节点的话,这个节 ...
分类:其他好文   时间:2021-02-16 12:00:16    阅读次数:0
[loj2504]小H爱染色
以下考虑直接对所有$F(A)$求和,并给出两种做法—— 做法1: 枚举答案$A$,对应方案数为${n-A\choose m}^{2}-{n-A-1\choose m}^{2}$,即答案为$\sum_{i=0}^{n-1}({n-i\choose m}^{2}-{n-i-1\choose m}^{2} ...
分类:其他好文   时间:2021-02-16 11:51:44    阅读次数:0
ECNU 3135 数据压缩
ECNU 3135 数据压缩 链接 https://acm.ecnu.edu.cn/problem/3135 题目 单点时限: 2.0 sec 内存限制: 256 MB RLE (Run Length Encoding)算法是一个简单高效的无损数据压缩算法。 算法的基本思路 : (1)、把数据看成一 ...
分类:其他好文   时间:2021-02-08 11:56:48    阅读次数:0
C Ⅱ
数据结构 C中整数之间的运算结果只会是整数 带小数点的数是浮点数 %d //是整数的参数 %f //是浮点数的参数 const int PLS=2.3; printf("%f",PLS); int定义整数变量,double定义双精度浮点数,float定义单精度浮点数 double ACD; scan ...
分类:其他好文   时间:2021-02-08 11:52:48    阅读次数:0
【背包九讲专题】完全背包
暴力朴素无优化写法: #include<bits/stdc++.h> using namespace std; const int maxn=1e3+5; int dp[maxn][maxn]; int v[maxn],w[maxn]; int main(){ int n,m;scanf("%d%d ...
分类:其他好文   时间:2021-02-04 12:02:33    阅读次数:0
9037条   上一页 1 ... 5 6 7 8 9 ... 904 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!