码迷,mamicode.com
首页 >  
搜索关键字:using stacks    ( 53729个结果
c++数组中最大值和最小值相加
源程序 #include <iostream>using namespace std;void main(){ int a[6]={23,15,64,33,40,58}; int s1,s2; s1=s2=a[0]; for(int *p=a+1;p<a+6;p++) { if(s1 > *p) s ...
分类:编程语言   时间:2021-02-01 11:40:52    阅读次数:0
信息学竞赛中C语言的输入输出
不像C中使用 iostream 库,在C语言中,通过函数的形式进行输入和输出。C语言中最普遍的输入函数是 scanf,输出函数是 printf。 我们通过下面两个示例程序来比较一下C和C的输入输出的区别。 C++输入输出示例: #include <iostream> using namespace ...
分类:编程语言   时间:2021-02-01 11:39:08    阅读次数:0
[CF1467C] Three Bags - 思维
给定 3 个集合,每个集合里有若干个数,每次可以从一个集合选择一个数 a,从另一个集合选择一个数 b,令 a=a-b,并且删除 b。操作到只剩下一个数为止。求剩下的这个数的最大值。 ...
分类:其他好文   时间:2021-01-30 12:18:25    阅读次数:0
【模板】主席树b( ̄▽ ̄)d
传送 1 #include<iostream> 2 #include<cstdio> 3 #include<cstring> 4 #include<algorithm> 5 using namespace std; 6 int cnt=0,original_value[9000001]={0},a[ ...
分类:其他好文   时间:2021-01-30 11:54:44    阅读次数:0
HDU 1022 Train Problem I 模拟
#include<iostream> #include<stack> #include<vector> #include<cstring> using namespace std; int n; char s1[10], s2[10]; vector<int> p; //记录顺序 stack<cha ...
分类:其他好文   时间:2021-01-30 11:54:10    阅读次数:0
kakfa 报错“Will not attempt to authenticate using SASL”
报错如下: 导致上述错误的原因有很多,下面列出常见错误 1.调整连接超时时间 zookeeper.connection.timeout.ms=6000 连接超时更新60000,即60秒,默认是6秒。 2.kafka配置文件中的zookeeper连接的ip或者端口配置错误 zookeeper.conn ...
分类:其他好文   时间:2021-01-29 11:59:37    阅读次数:0
hdu1042 N!
题目链接: hdu1042 N! \(c\)++ \(AC\) 代码: /** * hdu1042 N! * 0 <= N <= 10000 */ #include <iostream> #include <iomanip> #include <cstring> using namespace st ...
分类:其他好文   时间:2021-01-28 12:11:11    阅读次数:0
Cleaning the Phone
链接 : https://codeforces.com/contest/1475/problem/D 排序 + 双指针 #include <bits/stdc++.h> using namespace std; #define IO ios::sync_with_stdio(false);cin.t ...
分类:其他好文   时间:2021-01-28 12:04:58    阅读次数:0
C#生成二维码,返回Base64字符
using ThoughtWorks.QRCode.Codec; public static string GetQrCodeImage() { //二维码生成对象,需引用DLL QRCodeEncoder qrCodeEncoder = new QRCodeEncoder(); qrCodeEnc ...
分类:Windows程序   时间:2021-01-28 12:02:48    阅读次数:0
队列(c++容器queue实现)
#include<iostream> #include<queue>//队列容器 #include<string> using namespace std; class person{ public: person(string name,int age){ m_name=name; m_age=a ...
分类:编程语言   时间:2021-01-28 11:59:27    阅读次数:0
53729条   上一页 1 ... 44 45 46 47 48 ... 5373 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!