码迷,mamicode.com
首页 >  
搜索关键字:using password: yes    ( 53562个结果
快速幂的模板
给定n组ai,bi , pi,对于每组数据,求出ai^bi mod pi 的值。 #include<iostream>#include<cstdio>typedef long long ll;using namespace std;int qmi(int a,int b,int p){ int re ...
分类:其他好文   时间:2020-06-09 11:20:14    阅读次数:71
void out2() const{
#include "stdafx.h" #include using namespace std; class aa{ int num; public: aa(); void out1(){ cout<<num<<endl; } void out2() const{ cout<<num<<endl; ...
分类:其他好文   时间:2020-06-09 11:19:22    阅读次数:69
Luogu3324 星际战争
Description link Solution 首先我们发现这个时间不太好处理,又加上还有这个题 所以把题目转成二分 \(+\) 判定存在性问题 这样就好处理了 关于建图: (其实就是个二分图多重匹配拿网络流做的典范) Code #include<bits/stdc++.h> using nam ...
分类:其他好文   时间:2020-06-09 09:41:20    阅读次数:52
[脚本] iOS 与unity交互 ,陀螺仪
// *********************************************************** // Written by Heyworks Unity Studio http://unity.heyworks.com/ // ********************* ...
分类:移动开发   时间:2020-06-08 23:57:02    阅读次数:133
C#直接插入排序
1 using System; 2 3 namespace ConsoleApp1 4 { 5 class Program 6 { 7 static int[] InsertArray(int[] bornArray) 8 { 9 for (int i = 0; i < bornArray.Leng ...
分类:编程语言   时间:2020-06-08 20:45:52    阅读次数:59
常用算法合集(一)
常用算法合集(一) 查找算法 顺序查找 #include <iostream> using namespace std; int SeqSearch2(int r[], int n, int k) { int i=n; r[0]=k; while(r[i]!=k) i--; return i; } ...
分类:编程语言   时间:2020-06-08 18:50:59    阅读次数:56
运行bee run之后出现的错误以及解决方法Failed to build the application:
运行bee run之后出现的错误以及解决方法 创建一个beego项目 bee new myapp 在该项目执行下面的代码 bee run 出现的问题 2020/04/22 21:12:07 INFO ? 0001 Using 'myapp' as 'appname' 2020/04/22 21:12 ...
分类:移动开发   时间:2020-06-08 15:03:59    阅读次数:424
revit创建部件
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using Autodesk.Revit.DB;using Autodesk. ...
分类:其他好文   时间:2020-06-08 14:50:06    阅读次数:63
基于模板类开发vector容器
分析:容器类中要存放数组,而且数组类型不确定,所以应采用泛型编程,容器类要用到下标[]、赋值=、以及输出<<,所以应对这几个操作符进行重载。 第一步:模板类的框架搭建 #pragma once #include <iostream> using namespace std; template<typ ...
分类:其他好文   时间:2020-06-08 14:37:07    阅读次数:62
POJ3280
#include<cstdio> #include<iostream> #include<string> #include<algorithm> using namespace std; int f[2000][2000]; int main() { string str; int n,m,i,j, ...
分类:其他好文   时间:2020-06-08 12:52:48    阅读次数:59
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!