码迷,mamicode.com
首页 >  
搜索关键字:cin getline    ( 8174个结果
PAT字符串处理题---1021 个位数统计 (15分)
1021 个位数统计 (15分) #include<iostream> #include<string> #include<cstdio> using namespace std; int main(){ string s;cin>>s; int a[1005]={0}; for(int i=0;i ...
分类:其他好文   时间:2020-06-09 18:43:19    阅读次数:54
PAT字符串处理题---1006 换个格式输出整数 (15分)
1006 换个格式输出整数 (15分) #include<iostream> #include<string> #include<cstdio> using namespace std; int main(){ int n;cin>>n; string s=to_string(n); if(s.le ...
分类:其他好文   时间:2020-06-09 18:12:55    阅读次数:51
PAT字符处理题---1002 写出这个数 (20分)
1002 写出这个数 (20分) [1002 写出这个数 (20分)](https://pintia.cn/problem-sets/994805260223102976/problems/994805324509200384) #include<iostream> #include<string> ...
分类:其他好文   时间:2020-06-09 18:11:20    阅读次数:63
程序员应该怎样应对“扯皮”
今天帮一位同事处理一个工单,是上游(订单部门)的同事转过来的。说是客户的操作抛异常回滚了,抛异常的位置发生在支付系统(我们负责)。整个流程如下图所示。 简单介绍一下各系统的业务: 订单系统,在购物网站上把东西加入购物车的操作。 账单系统,在付款前显示您都买了什么东西,分别多少钱,总共多少钱。 支付系 ...
分类:其他好文   时间:2020-06-09 09:56:00    阅读次数:137
IfcElementAssemblyTypeEnum
此枚举定义元素程序集的基本配置类型。在IFC2x2中增加的新枚举。 ConstantDescription ACCESSORY_ASSEMBLY Assembled accessories or components. ARCH A curved structure. BEAM_GRID Inter ...
分类:编程语言   时间:2020-06-09 09:23:28    阅读次数:74
聊一聊Asp.net过滤器Filter那一些事
.net过滤器,对action的各个阶段进行统一的监控处理等操作。.net过滤器中,其中每一个种过滤器的执行先后顺序为:Authorize(授权)-->ActionFilter(自定义)-->HandleError(错误处理) ...
分类:Web程序   时间:2020-06-08 16:11:56    阅读次数:91
sstrtok函数用法
1 #include <iostream> 2 #include <cstring> 3 4 using namespace std; 5 6 int main() 7 { 8 string s; 9 getline(cin,s); // 读取一行 10 char *p; // 存储分割完一次分出的 ...
分类:其他好文   时间:2020-06-07 19:23:05    阅读次数:63
最长公共上升子序列
####输入格式 第一行包含一个整数N,表示数列A,B的长度。 第二行包含N个整数,表示数列A。 第三行包含N个整数,表示数列B。 ####输出格式 输出一个整数,表示最长公共上升子序列的长度。 ####数据范围 1≤N≤3000,序列中的数字均不超过231?1 ####思路: 状态表示:f[i][ ...
分类:其他好文   时间:2020-06-07 10:50:02    阅读次数:50
传纸条
#include using namespace std; //和方格取数一样,一来一回可以看成走两次 int a[51][51],m,n,dp[51][51][51][51]={0}; int main() { cin>>m>>n; for(int i=1;i>a[i][j]; for( int ... ...
分类:其他好文   时间:2020-06-06 21:32:36    阅读次数:85
多重背包
#include using namespace std; const int maxn=1000+10; int n,k,w[maxn],v[maxn],dp[maxn][maxn]={0},c[maxn]={0}; int main() { cin>>n>>k; for(int i=1;i>w[... ...
分类:其他好文   时间:2020-06-06 21:18:34    阅读次数:60
8174条   上一页 1 ... 39 40 41 42 43 ... 818 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!