C++输入输出流优化--你的竞赛模板 摘要: 输入输出优化:ios::sync_with_stdio(false),cin.tie(0),cout.tie(0);你可以准备的代码的模板里面可以添加这句话了。 曾在<算法竞赛>中看…… 文章列表 2018年12月16日 16 点赞 10 评论 2167 浏览 评分:9.9
关于1019题的看法。 摘要:下面给出我的代码;#include <stdio.h>#include <math.h>void main(){ double h,sum=0; int M,N; scanf("%d %d",&M,&…… 文章列表 2019年01月01日 1 点赞 0 评论 531 浏览 评分:9.9
如何理解typedef? 摘要:typedef用法:1、用typedef为现有类型创建别名,定义易于记忆的类型名2、typedef 还可以掩饰复合类型,如指针和数组。例如,你不用像下面这样重复定义有 81 个字符元素的数组: …… 文章列表 2019年01月02日 1 点赞 0 评论 1318 浏览 评分:9.9
蛇形矩阵(蓝桥杯普及题目) 摘要:c++解法如下: #include <iostream> using namespace std; int main() { const int N = 101; int ar…… 文章列表 2019年01月29日 5 点赞 0 评论 1086 浏览 评分:9.9
这是一封感谢信! 摘要: 首先,感谢黄老师,感谢C语言网! 本人并非计算机专业出身,大概是17年的时候,网上无意间看到黄老师C语言的视频,好像百度云搜来的,渠道好像不太好哈,但当时正值毕业,就业,匆匆忙忙的并没有…… 文章列表 2019年01月30日 5 点赞 1 评论 515 浏览 评分:9.9
数组和链表在原空间逆序 摘要:#include<stdio.h> #include<stdlib.h> void array_sequence()//顺序存储(数组)逆序的函数 { int len,i,j; scanf…… 文章列表 2019年02月13日 0 点赞 0 评论 743 浏览 评分:9.9
求最大公约数和最小公倍数 摘要:#include<iostream>#include<math.h>using namespace std;int mods(int a,int b){ while(b!=0){ int te…… 文章列表 2019年03月17日 5 点赞 0 评论 898 浏览 评分:9.9
删除字符串中指定的字符 摘要:要求:给定字符串 a="hello" 删除a中的字符'e'代码如下:#include<stdio.h> int main(void) { int i ,j; char a[] =…… 文章列表 2019年03月28日 0 点赞 0 评论 618 浏览 评分:9.9
题解1032(c语言代码) 极短代码,适合小白(无gets,puts等冷门函数) 摘要:重点: 1:简单的题,不要想得那么难! 2:连接字符串无需strcpy! 无需strcpy! 无需strcpy! 3:字符串输入输出用%s!代码: #include<stdio…… 文章列表 2019年03月28日 1 点赞 5 评论 314 浏览 评分:9.9
Python3算法类多组数据输入输出格式 摘要:在 Python3 中舍弃了 Python2 中的 raw_input() 的输入方式,读入的数据全部是字符串类型,需要使用 int() 强转即可,input()读入一行数据,strip() 去除两端…… 文章列表 2019年04月15日 3 点赞 0 评论 1937 浏览 评分:9.9