码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果)
HDU 5187 (快速幂 + 快速乘) == 高精度快速幂
这个找规律可以发现 结果是 2^n-2 ,但是直接用快速幂的,精度会爆掉(WA了两次),所以快速幂里面的乘法部分用快速乘来展开,解决掉精度的问题 #include<bits/stdc++.h> using namespace std; typedef long long ll; ll qmul(ll ...
分类:其他好文   时间:2020-09-18 03:16:57    阅读次数:28
进制转换
#include<iostream> using namespace std; int main(){ string s; cin >> s; cout << "Hex: 0x" << s << endl; int dec = 0, oct = 0; for(int i = 0; i < s.siz ...
分类:其他好文   时间:2020-09-18 03:14:58    阅读次数:39
表达式计算
算符优先文法的应用 #include<iostream> using namespace std; const int N = 110; char sb[N], pp = -1; int dg[N], qq = -1; int cmp(char a, char b){ if(a == '(') re ...
分类:其他好文   时间:2020-09-18 02:55:39    阅读次数:31
(二分)进击的奶牛
1 #include <iostream> 2 #include <cstdio> 3 #include <algorithm> 4 using namespace std; 5 const int N = 100010; 6 int house[N], n, c; 7 bool check(int ...
分类:其他好文   时间:2020-09-18 01:51:15    阅读次数:25
Ruby's Adventure 01
·博主是根据b站up主诺十一2020的教程进行的学习~ https://www.bilibili.com/video/BV1V4411W787?p=1 1.对角色的移动做了如下的编码 1 using System.Collections; 2 using System.Collections.Gen ...
分类:其他好文   时间:2020-09-18 01:21:38    阅读次数:29
关于特性的理解和使用
将特性插入,就是插入一个标志?然后再类typeof中存在一(字段?方法?)对多(特性) 当调用特性的方法的时候就是调用想对应类的 方法; using System; using System.Collections.Generic; using System.Linq; using System.T ...
分类:其他好文   时间:2020-09-18 01:20:53    阅读次数:25
styleGAN相关论文 - Image Processing Using Multi-Code GAN Prior(mGAN) - 1 - 论文学习
https://genforce.github.io/mganprior/ Image Processing Using Multi-Code GAN Prior Abstract 尽管生成对抗网络(GANs)在图像合成方面取得了成功,但将经过训练的GAN模型应用于真实图像处理仍然具有挑战性。以前的 ...
分类:其他好文   时间:2020-09-18 01:10:04    阅读次数:28
AtCoder Beginner Contest 178
比赛链接:https://atcoder.jp/contests/abc178/tasks A - not 题意 给出一个整数 $0 \le x \le 1$,如果 $x$ 是 $0$ 就输出 $1$,如果 $x$ 是 $1$ 就输出 $0$ 。 题解 输出 $x \oplus 1$ 或 $!x$ ...
分类:其他好文   时间:2020-09-18 01:08:34    阅读次数:29
团体程序设计天梯赛 长城
https://pintia.cn/problem-sets/994805046380707840/problems/994805050277216256 从右向左枚举所有的点 假设枚举到i,考虑让哪个点看到i最优 如上图,当ik的斜率大于等于ij的斜率时,对于i点来说j是不需要的 所以对于每个点要 ...
分类:其他好文   时间:2020-09-18 01:07:47    阅读次数:65
IIS实现Nginx功能:转发
这个标题本身是不合理的,但是基于目前公司有一份系统是外部代理商贴牌使用,有一个老的站点是部署在IIS上,好多代理商自己的域名绑定在这个上面,而近期新版本的系统已经上线,那么需要将这些域名也转发到新的站点上。目前有两个问题:(1)这台服务器无法去安装Nginx,因为需要占用80端口,那么服务器上的所有 ...
分类:其他好文   时间:2020-09-18 00:58:31    阅读次数:48
共53562条   上一页 1 ... 77 78 79 80 81 ... 5357 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!