E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
getchar()
【POI 2008】【bzoj 1113】海报PLA(单调栈)
块海报我们发现能省海报的情况当且仅当有两个矩形他们高度一样而中间夹着的矩形都比且他们高维护高的单调栈每加入一个矩形判断它左边第一个小于等于它高度的矩形的高度是否等于它的高度#includeusingnamespacestd;templateinlinevoidread(T&x){x=0;staticcharch=
getchar
Android66666
·
2020-08-19 07:14
[USACO16FEB]负载平衡(枚举暴力/模拟)
include#include#include#includeusingnamespacestd;constintmaxn=1e6+100;constintinf=1e9;intread(){charch=
getchar
A_Comme_Amour
·
2020-08-19 07:40
模拟
luogu P3799 妖梦拼木棒
*/#include#include#defineMod1000000007#defineMax5000voidread(int&now){now=0;registercharword=
getchar
(
weixin_30693183
·
2020-08-19 07:00
✔「 树状数组 」单点修改区间查询、区间修改单点查询、 区间修改区间查询 ☑全
include#include#defineLLlonglong#defineN500006#definelowbit(x)x&-xusingnamespacestd;inlineLLwread(){charc(
getchar
violin-wang
·
2020-08-19 07:50
树状数组
木棒
includeusingnamespacestd;intT,n=12;longlongans,l[15];boolvis[15];inlinelonglongread(){longlongk=0,f=1;charch=
getchar
大贝贝壳
·
2020-08-19 07:13
zr
Zut_round 6
include#includeusingnamespacestd;typedeflonglongLL;typedefpairP;constintN=1e3+9;#defineline'\n'#definegt
getchar
2码8改
·
2020-08-19 07:37
codeforces
3399: [Usaco2009 Mar]Sand Castle城堡
#include#include#includeusingnamespacestd;inlineintread(){intx=0,f=1;charch=
getchar
();while(ch'9'){if
ndsffx501ccy
·
2020-08-19 07:41
Codeforces Global Round 9 - C.Element Extermination (栈,贪心)
题目传送题意:给你n大小的数组排列,现在如果有俩个连续的数满足aiinlinelonglongread(){charc=
getchar
();longlongx=0,s=1;while(c'9'){if(
要无愧于人
·
2020-08-19 07:08
codeforces
贪心
Codeforces Global Round 9 - A. Sign Flipping (思维,贪心)
使得有至少一半的ai=ai+1,现在让你构造出这个数组思路:我们直接正负正负的一直下去,由于n为奇数,那么肯定就满足条件了AC代码#includeinlinelonglongread(){charc=
getchar
要无愧于人
·
2020-08-19 07:08
codeforces
贪心
思维
Codeforces Global Round 8 B.Codeforces Subsequences (思维,构造)
题目传送题意:给你一个k,现在要求你构造出一个字符串,使得其中有k个子串为“Codeforces”,并且这个字符串尽可能的短(1inlinelonglongread(){charc=
getchar
();
要无愧于人
·
2020-08-19 07:07
codeforces
思维
构造
【模板】二维树状数组(单点修改,区间查询)
includeusingnamespacestd;constintMax=5000;intn,m,a,b,c,d,x,tag;intsum[Max][Max];inlineintget_int(){intx=0,f=1;charc;for(c=
getchar
sszxzzh
·
2020-08-19 07:35
模板
【Codeforces】1119 Global Round 2 C-H简要题解
#include#definegc
getchar
#definepbpush_back#definem
ccosi
·
2020-08-19 06:39
树形DP
堆
构造
---多项式---
输入某个大写字母,产生一个金字塔图案。(字符与数字间的转换)
8月11日#includeintmain(intargc,char*argv[]){charch;LOOP:printf("请输入一个大写字母:\n");scanf("%c",&ch);while((
getchar
Eric.Wu_cn
·
2020-08-19 06:37
C语言
洛谷 P6559 [SBCOI2020]小镇 (ACM训练)
include#include#include#includeusingnamespacestd;constintMAXN=1e5+5;inlineintread(){intx=0,f=1;charc=
getchar
Spike Valentine
·
2020-08-19 06:17
《C程序设计语言》学习笔记(一)——导言
Book1.5.4while(c=
getchar
()!
猫猬兽
·
2020-08-19 06:24
C语言
ZZULIOJ 1131: 最常用字符(水题,
getchar
()的使用)
http://acm.zzuli.edu.cn/zzuliacm/problem.php?id=11311131:最常用字符TimeLimit:1SecMemoryLimit:128MBSubmit:2163Solved:1023SubmitStatusWebBoardDescription英文字母里出现频率最高的是哪个字母呢?给定一个字符串,输出字符串中出现次数最多的字母。Input输入一个只含
Shyazhut
·
2020-08-19 03:55
一块水过这的题
ZZULIOJ
7-24 树种统计 (25分)-map
参考链接:#include#include#include#include#includeusingnamespacestd;intmain(){intN;maptree;cin>>N;
getchar
(
Robinxbw
·
2020-08-18 23:40
keras图像识别入门练习:cnn识别字母图像(一)
创建字母图像用于识别:fromPILimportImage,ImageDraw,ImageFont,ImageFilterimportrandomdef
getChar
():returnchr(random.randint
weixin_41044499
·
2020-08-18 23:47
二叉树实现例题
typedefstructbitreenode{chardata;structbitreenode*lchild,*rchild;}*Bitree;//创建二叉树voidcreatbitree(Bitree&T){charch;ch=
getchar
skinworld
·
2020-08-18 22:48
[BZOJ]4987: Tree 树形DP
1usingnamespacestd;#defineLLlonglong#definepapairconstintMaxn=3010;constLLinf=1LL'9'){if(ch=='-')f=-1;ch=
getchar
200815147
·
2020-08-18 20:24
DP
第二天上手使用VS2017 顺序程序设计
首先字符数据输入/输出##关于字符数据的输出,我总结了有两种方式:##1)与putchar函数有关;putchar();##2)与printf函数有关,printf("%c",
getchar
());##1
格桑蓝莲
·
2020-08-18 18:59
C语言编程开发
P1449 后缀表达式
www.luogu.org/problem/P1449#include#includeusingnamespacestd;intmain(){charc;stacks;intans=0;while((c=
getchar
海豚有海๑
·
2020-08-18 18:50
用freopen和read解决大数据量输入
=EOF){printf("%c%c\n",a,b);charc;while((c=
getchar
())!='\n'&&c!=-1);}fclose(stdin);return0;}2.read
@江上雨
·
2020-08-18 17:11
Loj-10176-最大连续和
这个代码使用滚动数组优化的暴力,有局限性,只能处理长度为m区间的最大连续和,而并不是小于等于m的#include#include#defineFORa(i,s,e)for(inti=s;i=e;i--)#definegc
getchar
weixin_38168139
·
2020-08-18 17:05
第三章——输入一个不多于5位的数,然后输出它是几位数,输出它的每一位数,逆序输出该数。...
#includeusingnamespacestd;intmain(){chara[5];inti=0;while((a[i]=
getchar
())!
weixin_34259159
·
2020-08-18 17:12
noip车站分级 拓扑排序
里面没有在这组数里面的数和他们连一波表示这些数比他们等级低然后就搞一搞就好了哇#include#include#includeusingnamespacestd;constintM=3507;intread(){intans=0,f=1,c=
getchar
weixin_33738578
·
2020-08-18 17:38
loj10176. 「一本通 5.5 例 2」最大连续和
include#include#includeusingnamespacestd;constintmaxn=200010;inlinevoidqread(int&x){x=0;registerintch=
getchar
weixin_30947043
·
2020-08-18 17:59
fread读入优化,寻找速度极限
分别是
getchar
()两种方式以及fread()两种方式。测试数据为1e5,1e6,1e7的大小,每次测试循环5次或7次,力求测试结果的稳定性。
weixin_30755709
·
2020-08-18 17:15
洛谷P4017 最大食物链计数(拓扑排序)
include#include#include#include#definelllonglong#includeusingnamespacestd;inlinellread(){llk=0,f=1;charch=
getchar
Pinaoo
·
2020-08-18 16:35
【题解】洛谷P2661[NOIP2015]信息传递 并查集
#include#includeusingnamespacestd;constintN=2e5+10;inlineintread(){ints=0,f=0;charch=
getchar
();while(
不进清北不改名
·
2020-08-18 16:10
NOIP
洛谷
并查集
#10093. 「一本通 3.5 练习 1」网络协议(tarjan+度数分析)
usingnamespacestd;constintmaxn=1e3+10;constLLmod=998244353;inlineintread(){intX=0;boolflag=1;charch=
getchar
qq_3030364995
·
2020-08-18 16:02
SSLOJ 1469.W【树形dp】
include#include#include#include#include#defineLLlonglongusingnamespacestd;inlineLLread(){LLd=0,f=1;chars=
getchar
滑稽大佬
·
2020-08-18 16:07
dp
树形dp
统计字符数组中26个英文字母的个数
#includeintmain(){charx;ints[26]={0};inti=0;printf("输入句子:\n");while((x=
getchar
())!
Lyz1_2_3
·
2020-08-18 15:23
笔记
strset,memset,setmem,strstr,strcat,strncat函数原型
举例://strset.c#include#includemain(){char*s="GoldenGlobalView";clrscr();strset(s,'G');printf("%s",s);
getchar
johnlxj
·
2020-08-18 15:28
C语言使用注意事项(一)
转载请表明http://blog.csdn.net/yming0221/article/details/7233564更多查看C语言使用注意事项(二)C语言使用注意事项(三)C语言使用注意事项(四)1、
getchar
iteye_12675
·
2020-08-18 15:21
字符串函数strset
举例://strset.c#include#includemain(){char*s="GoldenGlobalView";clrscr();strset(s,'G');printf("%s",s);
getchar
dlyhlq
·
2020-08-18 14:28
Windows编程
VC++
C
C++
快速读入(快读)简记
快速读入——减少时间咻咻咻~inlineintread(){charch=
getchar
();inta=0,b=1;while(ch'9'){if(ch=='-')b=-1;ch=
getchar
();}
adapter12345
·
2020-08-18 14:11
洛谷 P3183
点数usingnamespacestd;constintmaxn=1e5+10;inlineintread(){intret=0;charc=
getchar
();while(c>'9'||c='0')ret
Mr_Dark_1707
·
2020-08-18 14:55
C语言,连续使用(与运算和或运算)&&与||时的注意事项
\n",a,b,c);
getchar
();printf("############\n");got
wufuminf
·
2020-08-18 14:53
C语言
UVA1401 Remember the word DP+Trie
='-'&&(ch'9'))ch=
getchar
();if(ch=='-'){fh=-1;ch=getcha
LIUZHH2088
·
2020-08-18 13:38
LG5202 「USACO2019JAN」Redistricting 动态规划+堆/单调队列优化
='-'&&(ch'9'))ch=
getchar
();if(ch=='-'){fh=-1;ch=
getchar
();}elsefh=1;while(ch>='0'&&chcnt[a.p
LIUZHH2088
·
2020-08-18 13:08
数据结构与算法
URAL 1083. Factorials!!!
justscrabasimpleanswer:#include#includeusingnamespacestd;intN=0;intK=0;longlongresult=0;voidmain(){scanf("%d",&N);
getchar
AlgorithmForge
·
2020-08-18 13:11
Ural
Problems
C++字符串读入优化
代码具体如下:inlinestringread()//inline继续加快速度{charch=
getchar
();stringst1="";while(!((
zhouhongkai06
·
2020-08-18 10:30
C++学习笔记
【C语言】输入任意多个整数
代码如下:#includeintmain(){intnum[1000];charch;do{scanf("%d",&a[i++]);}while((ch=
getchar
())!
zhouhongkai06
·
2020-08-18 10:30
C++学习笔记
fread 快速读入
比
getchar
的读入挂快的不知道哪里去了。。。顺便一提有时候普通
getchar
还没scanf快。。。
「已注销」
·
2020-08-18 10:58
字符串
鬼脚图 计蒜客17353 NOIP模拟 归并排序逆序对
这个是第一问对于第二问,拿到给定的序列之后,求解逆序对即可1#include2#include3usingnamespacestd;4templateinlinevoidread(_T&_a)5{6char_ch=
getchar
weixin_34297300
·
2020-08-18 09:18
输入输出加速代码...
1templatevoidread(T&num){2charCH;boolF=false;3for(CH=
getchar
();CH'9';F=CH=='-',CH=
getchar
());4for(num
weixin_30845171
·
2020-08-18 09:26
用递归实现二叉树的建立与遍历
此次的二叉树结构为:1.二叉树的建立:voidcreateBiTree(PTree*p)//建立二叉树{charch;scanf("%c",&ch);
getchar
();//此时%c读取的是单个字符,所以用
weixin_30333885
·
2020-08-18 09:12
NOIP复习内容:高精度减法
luogu#include#include#include#include#include#defineN40000006usingnamespacestd;inlineintwread(){charc(
getchar
violin-wang
·
2020-08-18 09:58
NOIP复习内容
NOIP复习内容
最大或
#include#include#include#include#include#defineLLlonglongusingnamespacestd;inlineintwread(){charc(
getchar
violin-wang
·
2020-08-18 09:58
NOIP模拟
NOIP模拟
上一页
30
31
32
33
34
35
36
37
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他